- Joined
- Mar 16, 2016
- Messages
- 37
- Reaction score
- 12
- First Language
- Hebrew
- Primarily Uses
So, in the scenes JS file this code creates the main title menu:
I'm trying to remove the options command and replace it with an exit command (quitting the game). Just to try it out, I commented out the options command and created a new gameEnd command:
However, the "Options" command still appears on the title menu (and the Game End option doesn't).
I figured, maybe the code I changed just sets up the handlers, and it doesn't actually create the title menu, but I couldn't find anywhere else in the codebase that addresses the title menu commands.
So, what am I missing?
P.S.
I saw people refer to SceneManager.exit() as the quit command, but I can't find this method in the class either, so I'm not sure this is actually going to work. Still I don't even see the command in the menu...
JavaScript:
Scene_Title.prototype.createCommandWindow = function() {
this._commandWindow = new Window_TitleCommand();
this._commandWindow.setHandler('newGame', this.commandNewGame.bind(this));
this._commandWindow.setHandler('continue', this.commandContinue.bind(this));
this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this.addWindow(this._commandWindow);
};
JavaScript:
Scene_Title.prototype.createCommandWindow = function() {
this._commandWindow = new Window_TitleCommand();
this._commandWindow.setHandler('newGame', this.commandNewGame.bind(this));
this._commandWindow.setHandler('continue', this.commandContinue.bind(this));
// this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this._commandWindow.setHandler('gameEnd', this.commandGameEnd.bind(this));
this.addWindow(this._commandWindow);
};
Scene_Title.prototype.commandGameEnd = function() {
SceneManager.exit();
};
I figured, maybe the code I changed just sets up the handlers, and it doesn't actually create the title menu, but I couldn't find anywhere else in the codebase that addresses the title menu commands.
So, what am I missing?
P.S.
I saw people refer to SceneManager.exit() as the quit command, but I can't find this method in the class either, so I'm not sure this is actually going to work. Still I don't even see the command in the menu...
Last edited:



