Basic Menu Script Not rated

apocalympsegaming1992

This is just a simple menu to include basic commands such as (Resume, Options, Quit). You can also have a custom background if you'd like.


Tags menu basic background picture gold

/: @author ApocalympseGaming1992 @plugindesc This is just a simple menu to include basic commands such as (Resume, Options, Quit). You can also have a custom background if you'd like. @help THERE ARE NO PARAMETERS FOR THIS PLUGIN!!! TO ADD BACKGROUND TO MENU YOU MUST HAVE A 816x624 PICTURE IN PICTURES FOLDER. THE PICTURE MUST BE NAMED "menuBG"(No Quotes!). IF YOU DO NOT WON'T BACKGROUND TO MENU, YOU STILL NEED AN 816x624 PICTURE BUT IT NEEDS TO BE COMPLETELY TRANSPARENT AND MUST BE NAMED "menuBG"(No Quotes!). PICTURES NEED TO BE SAVED AS .PNG FILE! */

(function(){ /=====================\ ==ALIASES:=============== =======================/ var alias_MenuBG = Scene_MenuBase.prototype.createBackground; var alias_MenuCreation = Scene_Menu.prototype.create;
var alias_OptionsCreation = Scene_Options.prototype.create; var alias_GameEndCreation = Scene_GameEnd.prototype.create; var alias_Command = Window_MenuCommand.prototype.makeCommandList; /=====================\ ==WINDOW_MENUCOMMAND:==== =======================/ Window_MenuCommand.prototype.makeCommandList = function() { this.addResumeCommand(); this.addOptionsCommand(); this.addGameEndCommand(); }; Window_MenuCommand.prototype.addResumeCommand = function() { if (this.needsCommand('resume')){ this.addCommand('Resume Game', 'resume', true); } }; Window_MenuCommand.prototype.addOptionsCommand = function() { if (this.needsCommand('options')) { this.addCommand(TextManager.options, 'options', true); } }; Window_MenuCommand.prototype.addGameEndCommand = function() { this.addCommand(TextManager.gameEnd, 'gameEnd', true); }; Window_MenuCommand.prototype.isOptionsEnabled = function() { return true; }; Window_MenuCommand.prototype.processOk = function() { Window_MenuCommand._lastCommandSymbol = this.currentSymbol(); Window_Command.prototype.processOk.call(this); }; Window_MenuCommand.prototype.selectLast = function() { this.selectSymbol(Window_MenuCommand._lastCommandSymbol); }; /====================\ ==SCENES:=============== ======================/
Scene_MenuBase.prototype.createBackground = function() { alias_MenuBG.call(this); this._backgroundSprite = new Sprite(); this._backgroundSprite.bitmap = ImageManager.loadPicture('menuBG'); this.addChild(this._backgroundSprite); }; Scene_Menu.prototype.create=function(){ alias_MenuCreation.call(this);
this._commandWindow.opacity = 0;//You can change this to anything betweeb 0-255! this._goldWindow.opacity = 0;//You can change this to anything betweeb 0-255! this._statusWindow.x=816; this._statusWindow.y=624; this._goldWindow.x = 575 / 2; this._commandWindow.windowWidth = this._goldWindow.windowWidth; this._commandWindow.x = this._goldWindow.x; this._commandWindow.y = 405; this._commandWindow.windowHeight = this._goldWindow.windowHeight; }; Scene_Options.prototype.create = function(){ alias_OptionsCreation.call(this); this._optionsWindow.opacity = 0; }; Scene_GameEnd.prototype.create = function(){ alias_GameEndCreation.call(this); this._commandWindow.opacity = 0; }; /=====================\ ==SCENE_WINDOWS:========= =======================/
Scene_Menu.prototype.createCommandWindow = function(){ this._commandWindow = new Window_MenuCommand(0, 0); this._commandWindow.setHandler('resume', this.commandResume.bind(this)); this._commandWindow.setHandler('options', this.commandOptions.bind(this)); this._commandWindow.setHandler('gameEnd', this.commandGameEnd.bind(this)); this._commandWindow.setHandler('cancel', this.popScene.bind(this)); this.addWindow(this._commandWindow); }; Window_MenuCommand.prototype.maxCols = function(){ return 1; }; Window_MenuCommand.prototype.numVisibleRows = function(){ return 3; }; /=====================\ ==SCENE_COMMANDS:========= =======================/ Scene_Menu.prototype.commandResume = function(){ SceneManager.push(Scene_Map); }; Scene_Menu.prototype.commandOptions = function(){ SceneManager.push(Scene_Options); }; Scene_Menu.prototype.commandGameEnd = function(){ SceneManager.push(Scene_GameEnd); };

}());

Available versions
This version doesn't have plugin dependencies.

User reviews (0)


This plugin doesn't have any review.