const _Window_MenuCommand_addMainCommands = Window_MenuCommand.prototype.addMainCommands;
Window_MenuCommand.prototype.addMainCommands = function() {
_Window_MenuCommand_addMainCommands.call(this);
this.addCommand("Monarchenübersicht", "monarchOverview");
};
const _Scene_Menu_createCommandWindow = Scene_Menu.prototype.createCommandWindow;
Scene_Menu.prototype.createCommandWindow = function() {
_Scene_Menu_createCommandWindow.call(this);
this._commandWindow.setHandler("monarchOverview", this.commandMonarchOverview.bind(this));
};
Scene_Menu.prototype.commandMonarchOverview = function() {
SceneManager.push(Scene_MonarchOverview);
};
function Scene_MonarchOverview() {
this.initialize.apply(this, arguments);
}
Scene_MonarchOverview.prototype = Object.create(Scene_MenuBase.prototype);
Scene_MonarchOverview.prototype.constructor = Scene_MonarchOverview;
Scene_MonarchOverview.prototype.initialize = function() {
Scene_MenuBase.prototype.initialize.call(this);
};
Scene_MonarchOverview.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this._helpWindow = new Window_Help(1);
this.addWindow(this._helpWindow);
this._helpWindow.setText("Monarchenübersicht");
this._infoWindow = new Window_Base(0, this._helpWindow.height, Graphics.boxWidth, Graphics.boxHeight - this._helpWindow.height);
this.addWindow(this._infoWindow);
this.refresh();
};
Alles anzeigen