- Joined
- Mar 16, 2013
- Messages
- 38
- Reaction score
- 100
- First Language
- Portuguese
Title Command Exit v1.00
by Atreyo Ray
Introduction
A very simple script that gives back the "Quit Game" option to the title screen.
Features
- You can type the text you want to appear as the exit option.
Screenshots
[IMG]http://i.imgur.com/KKgzXtT.jpg[/IMG]
How to Use
Create a .js in your project plugins folder (.../js/plugins) with the code below and use the Plugin Manager to add it to your project.
You should name it 'ARP_TitleCommandExit.js'
Alternatively, you can download the plugin with the link provided below.
For more information, watch this video: https://youtu.be/ym_qA6hO5d0?list=PLeDwqxgcpMGm40eocVtKL6owR6W8E6kyg
Script
Download
Or, you can download it here
FAQ
Q: Why should I use a 'Quit Game' option when I can simply close the window?
A: It might be interesting to have this option if you're making your game fullscreen at start. This way, players won't have to hit F4 to be able to close their game.
There's probably going to be a plugin to make a game fullscreen at start, though you can already do this simply by adding this line
"fullscreen": true,
to the 'window' object within the package.json file inside your deployed folder.
Credit
- You don't need to credit me.
by Atreyo Ray
Introduction
A very simple script that gives back the "Quit Game" option to the title screen.
Features
- You can type the text you want to appear as the exit option.
Screenshots
[IMG]http://i.imgur.com/KKgzXtT.jpg[/IMG]
How to Use
Create a .js in your project plugins folder (.../js/plugins) with the code below and use the Plugin Manager to add it to your project.
You should name it 'ARP_TitleCommandExit.js'
Alternatively, you can download the plugin with the link provided below.
For more information, watch this video: https://youtu.be/ym_qA6hO5d0?list=PLeDwqxgcpMGm40eocVtKL6owR6W8E6kyg
Script
Code:
//=============================================================================// ARP_TitleCommandExit.js//=============================================================================/*: * @plugindesc v1.00 Adds an option in the title screen to close * game window. * @author Atreyo Ray * * @param Command Exit * @desc The text that should appear as the exit command. * @default Quit * * @help Highly recommended to show the 'exit game' option ONLY when deploying to Windows or Mac. For Web or mobile applications, turn the plugin off. */(function() { var parameters = PluginManager.parameters('ARP_TitleCommandExit'); var textExit = parameters['Command Exit']; var _Window_TitleCommand_makeCommandList = Window_TitleCommand.prototype.makeCommandList; Window_TitleCommand.prototype.makeCommandList = function() { _Window_TitleCommand_makeCommandList.call(this); this.addCommand(textExit, 'exitGame'); }; var _Scene_Title_createCommandWindow = Scene_Title.prototype.createCommandWindow; Scene_Title.prototype.createCommandWindow = function() { _Scene_Title_createCommandWindow.call(this); this._commandWindow.setHandler('exitGame', this.commandExitGame.bind(this)); }; Scene_Title.prototype.commandExitGame = function() { this._commandWindow.close(); this.fadeOutAll(); SceneManager.exit(); };})();
Download
Or, you can download it here
FAQ
Q: Why should I use a 'Quit Game' option when I can simply close the window?
A: It might be interesting to have this option if you're making your game fullscreen at start. This way, players won't have to hit F4 to be able to close their game.
There's probably going to be a plugin to make a game fullscreen at start, though you can already do this simply by adding this line
"fullscreen": true,
to the 'window' object within the package.json file inside your deployed folder.
Credit
- You don't need to credit me.
Last edited by a moderator: