Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*:
- * @plugindesc Adds a menu transition when you open up your menu scene.
- * @author Soulpour777
- *
- * @param Fade Speed
- * @desc The fade speed of your transition.
- * @default 24
- *
- * @param Transition Switch
- * @desc Switch to activate transitions in the menu.
- * @default 1
- *
- */
- var SOUL_MV = SOUL_MV || {};
- SOUL_MV.fadeSpeed = Number(PluginManager.parameters('Menu Transition')['Fade Speed'] || 24);
- SOUL_MV.switchID = Number(PluginManager.parameters('Menu Transition')['Transition Switch'] || 1);
- Scene_Menu.prototype.fadeSpeed = function() {
- return SOUL_MV.fadeSpeed;
- };
- Scene_Menu.prototype.slowFadeSpeed = function() {
- return this.fadeSpeed() * 2;
- };
- Scene_Menu.prototype.start = function() {
- Scene_MenuBase.prototype.start.call(this);
- this._statusWindow.refresh();
- if($gameSwitches.value(SOUL_MV.switchID))this.startFadeIn(this.slowFadeSpeed(), false);
- };
Advertisement
Add Comment
Please, Sign In to add comment