gui array query by constructor fix
parent
ff68ee618f
commit
916cc4f00a
|
@ -593,7 +593,7 @@ GameLib.System.GUI.prototype.buildArrayManagerControl = function(
|
|||
|
||||
var idObject = {};
|
||||
|
||||
var selectionObject = GameLib.EntityManager.Instance.queryComponents(constructors).reduce(
|
||||
var selectionObject = GameLib.EntityManager.Instance.queryComponentsByConstructor(constructors).reduce(
|
||||
function(result, component) {
|
||||
result[component.name] = component;
|
||||
idObject[component.id] = component;
|
||||
|
|
|
@ -150,7 +150,7 @@ GameLib.System.Input.prototype.instanceCreated = function(data) {
|
|||
|
||||
if (data.component instanceof GameLib.Controls.D3.Editor) {
|
||||
if (this.editorControls.length > 0) {
|
||||
console.log('ignoring multiple editor controls')
|
||||
console.log('Ignoring multiple editor controls')
|
||||
} else {
|
||||
this.editorControls.push(data.component);
|
||||
this.registerEditorControls();
|
||||
|
@ -159,7 +159,7 @@ GameLib.System.Input.prototype.instanceCreated = function(data) {
|
|||
|
||||
if (data.component instanceof GameLib.Controls.Touch) {
|
||||
if (this.touchControls.length > 0) {
|
||||
console.log('ignoring multiple touch controls')
|
||||
console.log('Ignoring multiple touch controls')
|
||||
} else {
|
||||
this.touchControls.push(data.component);
|
||||
this.registerTouchControls();
|
||||
|
@ -168,7 +168,7 @@ GameLib.System.Input.prototype.instanceCreated = function(data) {
|
|||
|
||||
if (data.component instanceof GameLib.Controls.Keyboard) {
|
||||
if (this.keyboardControls.length > 0 || this.editorControls.length > 0) {
|
||||
console.log('ignoring multiple keyboard controls')
|
||||
console.log('Ignoring multiple keyboard controls')
|
||||
} else {
|
||||
this.keyboardControls.push(data.component);
|
||||
this.registerKeyboardControls();
|
||||
|
@ -177,7 +177,7 @@ GameLib.System.Input.prototype.instanceCreated = function(data) {
|
|||
|
||||
if (data.component instanceof GameLib.Controls.Mouse) {
|
||||
if (this.mouseControls.length > 0) {
|
||||
console.log('ignoring multiple mouse controls')
|
||||
console.log('Ignoring multiple mouse controls')
|
||||
} else {
|
||||
this.mouseControls.push(data.component);
|
||||
this.registerMouseControls();
|
||||
|
|
|
@ -636,7 +636,7 @@ GameLib.System.Storage.prototype.xhrLoad = function(
|
|||
return;
|
||||
}
|
||||
|
||||
console.log("Loading...", 'success');
|
||||
console.log('Loading from ' + url);
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", url);
|
||||
|
|
Loading…
Reference in New Issue