Schlangan

A madman with a computer
Veteran
Joined
May 20, 2015
Messages
1,435
Reaction score
1,722
First Language
French
Primarily Uses
RMMV
TitleShutdownCommand plugin

Version : 1.00

Introduction

This plugins adds a Shutdown command to the Title screen, for people who miss that functionality, and do not want to exit by ALT+F4 the game.



How to Use

Put the following code in a JS file named TitleShutdownCommand.js, that you insert in the plugin folder. Then, be sure to add the plugin to the project using the ProjectManager. You can then specify the name displayed on the command window. By default, Shutdown is set as text.

Script

Code:
//=============================================================================
// This plugin adds a shutdown command to the main menu
//=============================================================================
/*:
* @plugindesc Adds a Shutdown command to the Title screen
* @author Schlangan
*
* @param Name
* @desc The name displayed for the Shutdown command
* @default Shutdown
* @help No plugin command associated.
*/

Window_TitleCommand.prototype.makeCommandList = function() {
    var parameters = PluginManager.parameters('TitleShutdownCommand'); 
    var shutdown_name = parameters['Name'] || "Shutdown"; 
    this.addCommand(TextManager.newGame,   'newGame'); 
    this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled());     this.addCommand(TextManager.options,   'options'); 
    this.addCommand(shutdown_name,  'shutdown');
};

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('shutdown',  this.commandShutdown.bind(this));
    this.addWindow(this._commandWindow);
};

Scene_Title.prototype.commandShutdown = function() {
    this._commandWindow.close(); 
    window.close();
};

Credits and Terms of Use


This plugin may be used in any kind of project, commercial or not. Credits are required for commercial projects, optional for non-commercial.

Remarks

I cannot test this plugin on something other than a Windows PC. If for some reason it induces crashes on mobile devices, I'll add a system to make the option only available on non mobile devices.
 
Last edited:

Rito

Veteran
Veteran
Joined
Jun 29, 2015
Messages
107
Reaction score
50
First Language
French
Because the game may be install on navigator (IE, Firefox, Chrome) so no need exit button  :D
 
Last edited by a moderator:

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,304
Reaction score
5,474
First Language
Dutch
Primarily Uses
RMXP
Hey Schlagan, the last forum move totally messed up the plugin's layout. Could you fix it please?
 

Schlangan

A madman with a computer
Veteran
Joined
May 20, 2015
Messages
1,435
Reaction score
1,722
First Language
French
Primarily Uses
RMMV
Here you go, I also added a code tag for a better formatting.
 

Latest Threads

Latest Profile Posts

Voting for the second round of the Map Madness Tournament is now live! Vote for your favorite in each matchup! https://forums.rpgmakerweb.com/index.php?forums/map-madness-2021-polls.187/
Just bought the Visustella All Waves bundle... Time to go IN!!
Oh, I was just confirmed I'll be doing small online classes during june - july, on one side I'm nervous and looking forward it, on the other one: I've became the very thing I swore to destroy. :kaodes:
Work starts today at 2pm. I hate jeans, but the dress code says I have to wear them... That's how I discovered I was a plus size. Shopping for my first pair of jeans.
Anyhow, I'll post a new video on TheDazzlingsAreBack as soon as I'm able to.
dEj6ha4.png

WIP :)
Added some cliffs / walls / roofs to the tilesheet and am currently working on roof objects to make them prettier and more variable. And of course, windows and doors that fit to the game's style.
I also adjusted the grass color but i have some issues with my display, so if it looks weird, please let me know :)

Forum statistics

Threads
110,573
Messages
1,054,305
Members
143,685
Latest member
Yatsuzuka_Kou
Top