Hi all,
I need to use Window_NumberInput in a custom scene I'm making, but I cannot get it to show up for love or money. I've stripped out everything else from the scene in hopes of isolating the problem:
function Scene_Test(){ this.initialize.apply(this, arguments);}Scene_Test.prototype = Object.create(Scene_MenuBase.prototype);Scene_Test.prototype.constructor = Scene_Test;Scene_Test.prototype.initialize = function() { Scene_MenuBase.prototype.initialize.call(this);};Scene_Test.prototype.create = function() { Scene_MenuBase.prototype.create.call(this); this.createWindowLayer();// this.createHelpWindow(); this.createNumberWindow();};Scene_Test.prototype.createNumberWindow = function() { console.log("running"); this._numberWindow = new Window_NumberInput();// this._numberWindow.hide(); this.addWindow(this._numberWindow); this._numberWindow.show(); this._numberWindow.activate();};I'm using multiple other windows in the full version of the scene, and they all operate with no problem, but I can't get any response whatsoever from Window_NumberInput. The console.log shows me that the code is being read, but only the help window is ever displayed. You can see in createNumberWindow where I've tried several activation commands to no avail. What am I missing?
I need to use Window_NumberInput in a custom scene I'm making, but I cannot get it to show up for love or money. I've stripped out everything else from the scene in hopes of isolating the problem:
function Scene_Test(){ this.initialize.apply(this, arguments);}Scene_Test.prototype = Object.create(Scene_MenuBase.prototype);Scene_Test.prototype.constructor = Scene_Test;Scene_Test.prototype.initialize = function() { Scene_MenuBase.prototype.initialize.call(this);};Scene_Test.prototype.create = function() { Scene_MenuBase.prototype.create.call(this); this.createWindowLayer();// this.createHelpWindow(); this.createNumberWindow();};Scene_Test.prototype.createNumberWindow = function() { console.log("running"); this._numberWindow = new Window_NumberInput();// this._numberWindow.hide(); this.addWindow(this._numberWindow); this._numberWindow.show(); this._numberWindow.activate();};I'm using multiple other windows in the full version of the scene, and they all operate with no problem, but I can't get any response whatsoever from Window_NumberInput. The console.log shows me that the code is being read, but only the help window is ever displayed. You can see in createNumberWindow where I've tried several activation commands to no avail. What am I missing?