//=============================================================================
// ** 菜单整合
//=============================================================================
Window_MenuCommand.prototype.makeCommandList = function() {
this.addMainCommands();
this.addFormationCommand();
this.addOriginalCommands();
this.addGameEndCommand();
this.addCommand('返回', 'cancel');
};
Window_MenuCommand.prototype.addGameEndCommand = function() {
var enabled = this.isGameEndEnabled();
this.addCommand('系统', 'gameEnd', enabled);
};
Window_GameEnd.prototype.itemTextAlign = function() {
return 'center';
};
Window_GameEnd.prototype.makeCommandList = function() {
this.addCommand('读档', 'load', DataManager.isAnySavefileExists());
this.addCommand('存档', 'save');
this.addCommand('重开', 'reset');
this.addCommand('设置', 'options');
this.addCommand('返回', 'cancel');
};
Scene_GameEnd.prototype.createCommandWindow = function() {
this._commandWindow = new Window_GameEnd();
this._commandWindow.setHandler('load', this.commandLoad.bind(this));
this._commandWindow.setHandler('save', this.commandSave.bind(this));
this._commandWindow.setHandler('reset', this.commandReset.bind(this));
this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this._commandWindow.setHandler('cancel', this.popScene.bind(this));
this.addWindow(this._commandWindow);
};
Scene_GameEnd.prototype.commandSave = function() {
DataManager.saveGame(1);
SceneManager.goto(Scene_Map);
};
Scene_GameEnd.prototype.commandLoad = function() {
DataManager.loadGame(1);
SceneManager.goto(Scene_Map);
};
Scene_GameEnd.prototype.commandReset = function() {
DataManager.setupNewGame();
SceneManager.goto(Scene_Map);
};
Scene_GameEnd.prototype.commandOptions = function() {
SceneManager.push(Scene_Options);
};