Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*:
- *
- * @This is my first plugin!
- *
- * @author Vito The Boss
- *
- * @help
- *
- * Hi everyone!
- * This is the help file
- * This is a plugin, that provides you
- * to set up a image as title commands!
- */
- var commandsImages = ['Menu01', 'Menu02', 'Menu03'];
- var title_commandwindow = Scene_Title.prototype.createCommandWindow;
- Scene_Title.prototype.createCommandWindow = function() {
- title_commandwindow.call(this)
- 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);
- };
- var title_background = Scene_Title.prototype.createBackground;
- Scene_Title.prototype.createBackground = function (){
- title_background.call(this);
- this.removeChild(this._backSprite1);
- this._backSprite1 = new Sprite(ImageManager.loadSystem(commandsImages[0]));
- this.addChild(this._backSprite1);
- };
- Scene_Title.prototype.titleChange = function () {
- this._backSprite1.bitmap = ImageManager.loadSystem(commandsImages[this._commandWindow._index]);
- }
- var title_update = Scene_Title.prototype.update;
- Scene_Title.prototype.update = function() {
- title_update.call(this);
- this.titleChange();
- };
RAW Paste Data