IMF ShutDownGame (JS Preview)

Here's the code of the JS Plugin for MV I wrote: /*:

* @plugindesc Adds the Shutdown button to the title screen and the menu screen.

* @author It's Me Fire

*

* @help

*

* Shut Down Game

* Version 1.1

*

* This plugin does not provide plugin commands.

*

* Ever felt the need of having to do FN + F4 in full screen of your game? Well,

* with this plugin, you can add the Shut Down button to your game menu like in

* older versions of RPG Maker. (I.E. VX Ace)

*/

(function{

Window_TitleCommand.prototype.makeCommandList = function {

this.addCommand(TextManager.newGame,   'newGame');

this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled);

this.addCommand(TextManager.options,   'options');

this.addCommand('Shutdown', 'quit');

};

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('quit', this.commandQuit.bind(this));

this.addWindow(this._commandWindow);

};

Scene_Title.prototype.commandQuit = function {

this._commandWindow.close;

this.fadeOutAll;

SceneManager.exit;

};

Window_GameEnd.prototype.makeCommandList = function {

this.addCommand(TextManager.toTitle, 'toTitle');

this.addCommand('Shutdown', 'quit');

this.addCommand(TextManager.cancel,  'cancel');

};

Scene_GameEnd.prototype.createCommandWindow = function {

this._commandWindow = new Window_GameEnd;

this._commandWindow.setHandler('toTitle',  this.commandToTitle.bind(this));

this._commandWindow.setHandler('quit', this.commandQuit.bind(this));

this._commandWindow.setHandler('cancel',   this.popScene.bind(this));

this.addWindow(this._commandWindow);

};

Scene_GameEnd.prototype.commandQuit = function {

this._commandWindow.close;

this.fadeOutAll;

SceneManager.exit;

};

});

Go to Download