Hello again, i trying to make a new makeCommandList window and i found this error.
How to prevent the arrow input to work in the scene_Menu?
How to prevent the arrow input to work in the scene_Menu?
JavaScript:
/*
------------------------
Scenes
--------------------------
*/
function Scene_Testing() {
this.initialize.apply(this, arguments);
}
Scene_Testing.prototype = Object.create(Scene_Menu.prototype);
Scene_Testing.prototype.constructor = Scene_Testing;
Scene_Testing.prototype.initialize = function() {
Scene_Menu.prototype.initialize.call(this);
};
Scene_Testing.prototype.create = function () {
Scene_Menu.prototype.create.call(this);
this._AnewWindow = new Window_Testing(300, 300, 700, 600);
this._AnewWindow.setHandler('cancel', this.popScene.bind(this));
this.addWindow(this._AnewWindow);
};
/*
------------------------
Window
--------------------------
*/
function Window_Testing () {
this.initialize.apply(this, arguments);
}
Window_Testing.prototype = Object.create(Window_Command.prototype);
Window_Testing.prototype.constructor = Window_Testing;
Window_Testing.prototype.initialize = function (x, y, width, height) {
Window_Command.prototype.initialize.call(this, x, y, width, height);
}
Window_Testing.prototype.makeCommandList = function(index) {
this.addCommand(TextManager.status, 'status'); //<-This is just a filler
this.addCommand(TextManager.status, 'status'); //<-This is just a filler
}