Hey I'm trying to create a custom window that will be called on the menu, but whenever I try to push the scene using SceneManager.push(Scene_UpdatedStatus()) it gives me this error.
this is what the code currently looks like, though I'm pretty sure it's just not running anything past the initialize.apply function anyway. Am I missing something? I've just been copying the structure of other scenes found in rpg_scenes.js.
Code:
Input.keyMapper["69"] = "E";
Input.keyMapper["65"] = "altleft";
Input.keyMapper["68"] = "altright";
function Scene_UpdatedStatus() {
this.initialize.apply(this, arguments);
}
Scene_UpdatedStatus.prototype = Object.create(Scene_MenuBase.prototype);
Scene_UpdatedStatus.prototype.constructor = Scene_UpdatedStatus;
Scene_UpdatedStatus.prototype.initialize = function() {
Scene_MenuBase.prototype.initialize.call(this);
};
Scene_UpdatedStatus.prototype.create = function(){
Scene_MenuBase.prototype.create.call(this);
this._updatedWindow = new Window_UpdatedStatus(0, 0, 500, 500);
this.addWindow(this._updatedWindow);
};
Scene_UpdatedStatus.prototype.update = function(){
if (!this.drawnWindows){
this._updatedWindow.refresh();
this.drawnWindows = true;
}
if (Input.isTriggered("cancel")) {SceneManager.pop();}
if (Input.isTriggered("E")){
if (!this._updatedWindow._showPersona)
{
this._updatedWindow._showPersona = true;
this.drawnWindows = false;
}
}
if (Input.isTriggered("pageup")){
if (this._updatedWindow._showPersona)
{
this._updatedWindow._showPersona = false;
this.drawnWindows = false;
}
}
if (Input.isTriggered("altleft") && $gameParty.members().length > 1){
//this._updatedWindow.UpdateActors(left);
this.drawnWindows = false;
}
if (Input.isTriggered("altright") && $gameParty.members().length > 1){
//this._updatedWindow.UpdateActors(right);
this.drawnWindows = false;
}
};
this is what the code currently looks like, though I'm pretty sure it's just not running anything past the initialize.apply function anyway. Am I missing something? I've just been copying the structure of other scenes found in rpg_scenes.js.