// --------------------------------------------------------------------------
// SOUL_MV Full Slider CMS.js
// Author: Soulpour777 as always
// --------------------------------------------------------------------------
/*:
* @plugindesc v1.0 Creates a full sliding animation for all menu windows.
* @author Soulpour777 - soulxregalia.wordpress.com
*
* @param -- MAIN MENU --
*
* @param Command Window X
* @desc The initial x coordinate value of the command window before the sliding animation.
* @default 900
*
* @param Command Slide Speed
* @desc The sliding speed animation of the command window.
* @default 50
*
* @param Command Slide End
* @desc The ending x coordinate value of the command window needed for the slide animation to lock and stop.
* @default 0
*
* @param Gold Window X
* @desc The initial x coordinate value of the gold window before the sliding animation.
* @default -900
*
* @param Gold Slide Speed
* @desc The sliding speed animation of the gold window.
* @default 50
*
* @param Gold Slide End
* @desc The ending x coordinate value of the gold window needed for the slide animation to lock and stop.
* @default 0
*
* @param Status Window Y
* @desc The initial y coordinate value of the Status window before the sliding animation.
* @default 900
*
* @param Status Slide Speed
* @desc The sliding speed animation of the Status window.
* @default 50
*
* @param Status Slide End
* @desc The ending x coordinate value of the Status window needed for the slide animation to lock and stop.
* @default 0
*
* @param -- ITEM --
*
* @param Help Window X
* @desc The initial x coordinate value of the Help window before the sliding animation.
* @default -900
*
* @param Help Slide Speed
* @desc The sliding speed animation of the Help window.
* @default 50
*
* @param Help Slide End
* @desc The ending x coordinate value of the Help window needed for the slide animation to lock and stop.
* @default 0
*
* @param Category Window X
* @desc The initial x coordinate value of the Category window before the sliding animation.
* @default 900
*
* @param Category Slide Speed
* @desc The sliding speed animation of the Category window.
* @default 50
*
* @param Category Slide End
* @desc The ending x coordinate value of the Category window needed for the slide animation to lock and stop.
* @default 0
*
* @param Item Window Y
* @desc The initial y coordinate value of the Item window before the sliding animation.
* @default 900
*
* @param Item Slide Speed
* @desc The sliding speed animation of the Item window.
* @default 50
*
* @param Item Slide End
* @desc The ending x coordinate value of the Item window needed for the slide animation to lock and stop.
* @default 180
*
* @param -- SKILL --
*
* @param SkillHelp Window Y
* @desc The initial x coordinate value of the Skill Help window before the sliding animation.
* @default -900
*
* @param SkillHelp Slide Speed
* @desc The sliding speed animation of the Skill Help window.
* @default 50
*
* @param SkillHelp Slide End
* @desc The ending x coordinate value of the Skill Help window needed for the slide animation to lock and stop.
* @default 0
*
* @param SkillType Window X
* @desc The initial x coordinate value of the Skill Type window before the sliding animation.
* @default -900
*
* @param SkillType Slide Speed
* @desc The sliding speed animation of the Skill Type window.
* @default 50
*
* @param SkillType Slide End
* @desc The ending x coordinate value of the Skill Type window needed for the slide animation to lock and stop.
* @default 0
*
* @param SkillItem Window Y
* @desc The initial y coordinate value of the Skill Item window before the sliding animation.
* @default 900
*
* @param SkillItem Slide Speed
* @desc The sliding speed animation of the Skill Item window.
* @default 44
*
* @param SkillItem Slide End
* @desc The ending x coordinate value of the Skill Item window needed for the slide animation to lock and stop.
* @default 288
*
* @param SkillStatus Window X
* @desc The initial x coordinate value of the Skill Status window before the sliding animation.
* @default 900
*
* @param SkillStatus Slide Speed
* @desc The sliding speed animation of the Skill Status window.
* @default 44
*
* @param SkillStatus Slide End
* @desc The ending x coordinate value of the Skill Status window needed for the slide animation to lock and stop.
* @default 240
*
* @param -- EQUIP --
*
* @param EquipHelp Window X
* @desc The initial x coordinate value of the Equip Help window before the sliding animation.
* @default -900
*
* @param EquipHelp Slide Speed
* @desc The sliding speed animation of the Equip Help window.
* @default 50
*
* @param EquipHelp Slide End
* @desc The ending x coordinate value of the Equip Help window needed for the slide animation to lock and stop.
* @default 0
*
* @param EquipStatus Window X
* @desc The initial x coordinate value of the Equip Status window before the sliding animation.
* @default -900
*
* @param EquipStatus Slide Speed
* @desc The sliding speed animation of the Equip Status window.
* @default 50
*
* @param EquipStatus Slide End
* @desc The ending x coordinate value of the Equip Status window needed for the slide animation to lock and stop.
* @default 0
*
* @param EquipItem Window Y
* @desc The initial y coordinate value of the Equip Item window before the sliding animation.
* @default 900
*
* @param EquipItem Slide Speed
* @desc The sliding speed animation of the Equip Item window.
* @default 42
*
* @param EquipItem Slide End
* @desc The ending x coordinate value of the Equip Item window needed for the slide animation to lock and stop.
* @default 396
*
* @param EquipSlot Window X
* @desc The initial y coordinate value of the Equip Slot window before the sliding animation.
* @default 900
*
* @param EquipSlot Slide Speed
* @desc The sliding speed animation of the Equip Slot window.
* @default 52
*
* @param EquipSlot Slide End
* @desc The ending x coordinate value of the Equip Slot window needed for the slide animation to lock and stop.
* @default 312
*
* @param EquipCmd Window X
* @desc The initial y coordinate value of the Equip Command window before the sliding animation.
* @default 900
*
* @param EquipCmd Slide Speed
* @desc The sliding speed animation of the Equip Command window.
* @default 52
*
* @param EquipCmd Slide End
* @desc The ending x coordinate value of the Equip Command window needed for the slide animation to lock and stop.
* @default 312
*
* @param -- STATUS --
*
* @param StatusScene Window X
* @desc The initial x coordinate value of the Status Scene window before the sliding animation.
* @default -900
*
* @param StatusScene Slide Speed
* @desc The sliding speed animation of the Status Scene window.
* @default 50
*
* @param StatusScene Slide End
* @desc The ending x coordinate value of the Status Scene window needed for the slide animation to lock and stop.
* @default 0
*
* @help
Full Slider CMS by Soulpour777
Description:
This plugin will allow you to have a sliding menu instead of the
old and default menu.
Instructions:
If you are using any other plugins that has to do with changing commands in the
menu or anything that has to do with the menu, please make sure that this
plugin is placed first before that. It is safe to assume that if you
are using Yanfly's Menu Manager or Hime's Menu Manager, place this
first.
There is no plugin command for this plugin.
All parameters are well explained in their description.
*/
(function(){
var params = PluginManager.parameters('SOUL_MV Full Slider CMS');
// Menu Command
var xCommmand = Number(params['Command Window X'] || 900);
var xCommmandEnd = Number(params['Command Slide End'] || 0);
var xCommmandSpeed = Number(params['Command Slide Speed'] || 50);
// Menu Gold Window
var xGold = Number(params['Gold Window X'] || -900);
var xGoldEnd = Number(params['Gold Slide End'] || 0);
var xGoldSpeed = Number(params['Gold Slide Speed'] || 50);
// Menu Status
var xStatus = Number(params['Status Window Y'] || 900);
var xxStatusEnd = Number(params['Status Slide End'] || 0);
var xxStatusSpeed = Number(params['Status Slide Speed'] || 50);
// Help Window
var xHELP = Number(params['Help Window X'] || -900);
var xHELPEnd = Number(params['Help Slide End'] || 0);
var xHELPSpeed = Number(params['Help Slide Speed'] || 50);
// Category Command
var xCategory = Number(params['Category Window X'] || 900);
var xCategoryEnd = Number(params['Category Slide End'] || 0);
var xCategorySpeed = Number(params['Category Slide Speed'] || 50);
// Item Window
var xItem = Number(params['Item Window Y'] || 900);
var xItemEnd = Number(params['Item Slide End'] || 180);
var xItemSpeed = Number(params['Item Slide Speed'] || 50);
// Skill Help Window
var xsHELP = Number(params['SkillHelp Window Y'] || -900);
var xsHELPEnd = Number(params['SkillHelp Slide End'] || 0);
var xsHELPSpeed = Number(params['SkillHelp Slide Speed'] || 50);
// Skill Type Window
var xsType = Number(params['SkillType Window X'] || -900);
var xsTypeEnd = Number(params['SkillType Slide End'] || 0);
var xsTypeSpeed = Number(params['SkillType Slide Speed'] || 50);
// Skill Item Window
var xSkillItem = Number(params['SkillItem Window Y'] || 900);
var xSkillItemEnd = Number(params['SkillItem Slide End'] || 288);
var xSkillItemSpeed = Number(params['SkillItem Slide Speed'] || 44);
// Skill Status Window
var xSkillStatus = Number(params['SkillStatus Window X'] || 900);
var xSkillStatusEnd = Number(params['SkillStatus Slide End'] || 240);
var xSkillStatusSpeed = Number(params['SkillStatus Slide Speed'] || 44);
// Equip Help Window
var xeHELP = Number(params['EquipHelp Window Y'] || -900);
var xeHELPEnd = Number(params['EquipHelp Slide End'] || 0);
var xeHELPSpeed = Number(params['EquipHelp Slide Speed'] || 50);
// Equip Status Window
var xEquipStatus = Number(params['EquipStatus Window X'] || -900);
var xEquipStatusEnd = Number(params['EquipStatus Slide End'] || 0);
var xEquipStatusSpeed = Number(params['EquipStatus Slide Speed'] || 50);
// Equip Item Window
var xEquipItem = Number(params['EquipItem Window Y'] || 900);
var xEquipItemEnd = Number(params['EquipItem Slide End'] || 396);
var xEquipItemSpeed = Number(params['EquipItem Slide Speed'] || 42);
// Equip Slot Window
var xEquipSlot = Number(params['EquipSlot Window X'] || 900);
var xEquipSlotEnd = Number(params['EquipSlot Window Slide End'] || 312);
var xEquipSlotSpeed = Number(params['EquipSlot Window Slide Speed'] || 52);
// Equip Slot Window
var xEquipCMD = Number(params['EquipCmd Window X'] || 900);
var xEquipCMDEnd = Number(params['EquipCmd Window Slide End'] || 312);
var xEquipCMDSpeed = Number(params['EquipCmd Window Slide Speed'] || 52);
// Equip Slot Window
var xStatusScene = Number(params['StatusScene Window X'] || -900);
var xStatusSceneEnd = Number(params['StatusScene Window Slide End'] || 0);
var xStatusSceneSpeed = Number(params['StatusScene Window Slide Speed'] || 50);
Scene_Menu.prototype.initialize = function() {
Scene_MenuBase.prototype.initialize.call(this);
this._panOut = false;
this._timer = 60;
};
Scene_Menu.prototype.createCommandWindow = function() {
this._commandWindow = new Window_MenuCommand(0, 0);
this._commandWindow.setHandler('item', this.commandItem.bind(this));
this._commandWindow.setHandler('skill', this.commandPersonal.bind(this));
this._commandWindow.setHandler('equip', this.commandPersonal.bind(this));
this._commandWindow.setHandler('status', this.commandPersonal.bind(this));
this._commandWindow.setHandler('formation', this.commandFormation.bind(this));
this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this._commandWindow.setHandler('save', this.commandSave.bind(this));
this._commandWindow.setHandler('gameEnd', this.commandGameEnd.bind(this));
//this._commandWindow.setHandler('cancel', this.popScene.bind(this));
this.addWindow(this._commandWindow);
this._commandWindow.x = xCommmand;
};
Scene_Menu.prototype.commandItem = function() {
SceneManager.push(Scene_Item);
};
Scene_Menu.prototype.commandPersonal = function() {
this.clockUp();
this._statusWindow.setFormationMode(false);
this._statusWindow.selectLast();
this._statusWindow.activate();
this._statusWindow.setHandler('ok', this.onPersonalOk.bind(this));
this._statusWindow.setHandler('cancel', this.onPersonalCancel.bind(this));
};
// var fullSlider_sceneMenu_createGoldWindow = Scene_Menu.prototype.createGoldWindow;
// Scene_Menu.prototype.createGoldWindow = function() {
// fullSlider_sceneMenu_createGoldWindow.call(this);
// this._goldWindow.x = xGold;
// };
var fullSlider_sceneMenu_createStatusWindow = Scene_Menu.prototype.createStatusWindow;
Scene_Menu.prototype.createStatusWindow = function() {
fullSlider_sceneMenu_createStatusWindow.call(this);
this._statusWindow.y = xStatus;
};
Scene_Menu.prototype.update = function() {
Scene_MenuBase.prototype.update.call(this);
this.clockUp();
};
Scene_Menu.prototype.clockUp = function() {
if (this._panOut === false) {
if (this._commandWindow.x != xCommmandEnd) {
if (this._commandWindow.x <= xCommmandEnd) {
this._commandWindow.x = xCommmandEnd;
} else {
this._commandWindow.x -= xCommmandSpeed;
}
}
if (this._statusWindow.y != xxStatusEnd) {
if (this._statusWindow.y <= xxStatusEnd) {
this._statusWindow.y = xxStatusEnd;
} else {
this._statusWindow.y -= xxStatusSpeed;
}
}
// if (this._goldWindow.x != xGoldEnd) {
// if (this._goldWindow.x >= xGoldEnd) {
// this._goldWindow.x = xGoldEnd;
// } else {
// this._goldWindow.x += xGoldSpeed;
// }
// }
} else {
if (this._commandWindow.x != xCommmand) {
if (this._commandWindow.x >= xCommmand) {
this._commandWindow.x = xCommmand;
} else {
this._commandWindow.x += xCommmandSpeed;
}
}
if (this._statusWindow.y != xStatus) {
if (this._statusWindow.y >= xStatus) {
this._statusWindow.y = xStatus;
} else {
this._statusWindow.y += xxStatusSpeed;
}
}
// if (this._goldWindow.x != xGold) {
// if (this._goldWindow.x <= xGold) {
// this._goldWindow.x = xGold;
// } else {
// this._goldWindow.x -= xGoldSpeed;
// }
// }
if (this._timer != 0) {
if (this._timer <= 4) {
this.popScene();
} else {
this._timer -= 4;
}
}
}
if (Input.isTriggered('cancel')) {
this._panOut = true;
SoundManager.playCancel();
}
}
Scene_Item.prototype.initialize = function() {
Scene_ItemBase.prototype.initialize.call(this);
this._timer = 60;
this._panOut = false;
};
Scene_Item.prototype.createHelpWindow = function() {
this._helpWindow = new Window_Help();
this._helpWindow.x = xHELP;
this.addWindow(this._helpWindow);
};
Scene_Item.prototype.createCategoryWindow = function() {
this._categoryWindow = new Window_ItemCategory();
this._categoryWindow.setHelpWindow(this._helpWindow);
this._categoryWindow.y = this._helpWindow.height;
this._categoryWindow.setHandler('ok', this.onCategoryOk.bind(this));
//this._categoryWindow.setHandler('cancel', this.popScene.bind(this));
this.addWindow(this._categoryWindow);
this._categoryWindow.x = xCategory;
};
var fullSlider_sceneItem_createItemWindow = Scene_Item.prototype.createItemWindow;
Scene_Item.prototype.createItemWindow = function() {
fullSlider_sceneItem_createItemWindow.call(this);
this._itemWindow.y = xItem;
};
Scene_Item.prototype.update = function() {
Scene_MenuBase.prototype.update.call(this);
if (this._panOut === false) {
if (this._categoryWindow.x != xCategoryEnd) {
if (this._categoryWindow.x <= xCategoryEnd) {
this._categoryWindow.x = xCategoryEnd;
} else {
this._categoryWindow.x -= xCategorySpeed;
}
}
if (this._helpWindow.x != xHELPEnd) {
if (this._helpWindow.x >= xHELPEnd) {
this._helpWindow.x = xHELPEnd;
} else {
this._helpWindow.x += xHELPSpeed;
}
}
if (this._itemWindow.y != xItemEnd) {
if (this._itemWindow.y <= xItemEnd) {
this._itemWindow.y = xItemEnd;
} else {
this._itemWindow.y -= xItemSpeed;
}
}
} else {
if (this._categoryWindow.x != xCategory) {
if (this._categoryWindow.x >= xCategory) {
this._categoryWindow.x = xCategory;
} else {
this._categoryWindow.x += xCategorySpeed;
}
}
if (this._helpWindow.x != xHELP) {
if (this._helpWindow.x <= xHELP) {
this._helpWindow.x = xHELP;
} else {
this._helpWindow.x -= xHELPSpeed;
}
}
if (this._itemWindow.y != xItem) {
if (this._itemWindow.y >= xItem) {
this._itemWindow.y = xItem;
} else {
this._itemWindow.y += xItemSpeed;
}
}
if (this._timer != 0) {
if (this._timer <= 4) {
this.popScene();
} else {
this._timer -= 4;
}
}
}
if (Input.isTriggered('cancel')) {
this._panOut = true;
SoundManager.playCancel();
}
}
Scene_Skill.prototype.initialize = function() {
Scene_ItemBase.prototype.initialize.call(this);
this._panOut = false;
this._timer = 60;
};
Scene_Skill.prototype.createSkillTypeWindow = function() {
var wy = this._helpWindow.height;
this._skillTypeWindow = new Window_SkillType(0, wy);
this._skillTypeWindow.setHelpWindow(this._helpWindow);
this._skillTypeWindow.setHandler('skill', this.commandSkill.bind(this));
// this._skillTypeWindow.setHandler('cancel', this.popScene.bind(this));
this._skillTypeWindow.setHandler('pagedown', this.nextActor.bind(this));
this._skillTypeWindow.setHandler('pageup', this.previousActor.bind(this));
this.addWindow(this._skillTypeWindow);
this._skillTypeWindow.x = xsType;
};
Scene_Skill.prototype.createHelpWindow = function() {
this._helpWindow = new Window_Help();
this._helpWindow.y = xsHELP;
this.addWindow(this._helpWindow);
};
var fullSlider_sceneSkill_createStatusWindow = Scene_Skill.prototype.createStatusWindow;
Scene_Skill.prototype.createStatusWindow = function() {
fullSlider_sceneSkill_createStatusWindow.call(this);
this._statusWindow.x = xSkillStatus;
};
var fullSlider_sceneSkill_createItemWindow = Scene_Skill.prototype.createItemWindow;
Scene_Skill.prototype.createItemWindow = function() {
fullSlider_sceneSkill_createItemWindow.call(this);
this._itemWindow.y = xSkillItem;
this.addWindow(this._itemWindow);
};
Scene_Skill.prototype.update = function() {
Scene_MenuBase.prototype.update.call(this);
if (this._panOut === false) {
if (this._helpWindow.y != xsHELPEnd) {
if (this._helpWindow.y >= xsHELPEnd) {
this._helpWindow.y = xsHELPEnd;
} else {
this._helpWindow.y += xsHELPSpeed;
}
}
if (this._skillTypeWindow.x != xsTypeEnd) {
if (this._skillTypeWindow.x >= xsTypeEnd) {
this._skillTypeWindow.x = xsTypeEnd;
} else {
this._skillTypeWindow.x += xsTypeSpeed;
}
}
if (this._itemWindow.y != xSkillItemEnd) {
if (this._itemWindow.y <= xSkillItemEnd) {
this._itemWindow.y = xSkillItemEnd;
} else {
this._itemWindow.y -= xSkillItemSpeed;
}
}
if (this._statusWindow.x != xSkillStatusEnd) {
if (this._statusWindow.x <= xSkillStatusEnd) {
this._statusWindow.x = xSkillStatusEnd;
} else {
this._statusWindow.x -= xSkillStatusSpeed;
}
}
} else {
if (this._helpWindow.y != xsHELP) {
if (this._helpWindow.y <= xsHELP) {
this._helpWindow.y = xsHELP;
} else {
this._helpWindow.y -= xsHELPSpeed;
}
}
if (this._skillTypeWindow.x != xsType) {
if (this._skillTypeWindow.x <= xsType) {
this._skillTypeWindow.x = xsType;
} else {
this._skillTypeWindow.x -= xsTypeSpeed;
}
}
if (this._itemWindow.y != xSkillItem) {
if (this._itemWindow.y >= xSkillItem) {
this._itemWindow.y = xSkillItem;
} else {
this._itemWindow.y += xSkillItemSpeed;
}
}
if (this._statusWindow.x != xSkillStatus) {
if (this._statusWindow.x >= xSkillStatus) {
this._statusWindow.x = xSkillStatus;
} else {
this._statusWindow.x += xSkillStatusSpeed;
}
}
if (this._timer != 0) {
if (this._timer <= 4) {
this.popScene();
} else {
this._timer -= 4;
}
}
}
if (Input.isTriggered('cancel')) {
this._panOut = true;
SoundManager.playCancel();
}
};
Scene_Equip.prototype.initialize = function() {
Scene_MenuBase.prototype.initialize.call(this);
this._timer = 60;
this._panOut = false;
};
Scene_Equip.prototype.createHelpWindow = function() {
this._helpWindow = new Window_Help();
this._helpWindow.y = xeHELP;
this.addWindow(this._helpWindow);
};
var fullSlider_sceneEquip_createStatusWindow = Scene_Equip.prototype.createStatusWindow;
Scene_Equip.prototype.createStatusWindow = function() {
fullSlider_sceneEquip_createStatusWindow.call(this);
this._statusWindow.x = xEquipStatus;
};
Scene_Equip.prototype.createCommandWindow = function() {
var wx = this._statusWindow.width;
var wy = this._helpWindow.height;
var ww = Graphics.boxWidth - this._statusWindow.width;
this._commandWindow = new Window_EquipCommand(wx, wy, ww);
this._commandWindow.setHelpWindow(this._helpWindow);
this._commandWindow.setHandler('equip', this.commandEquip.bind(this));
this._commandWindow.setHandler('optimize', this.commandOptimize.bind(this));
this._commandWindow.setHandler('clear', this.commandClear.bind(this));
// this._commandWindow.setHandler('cancel', this.popScene.bind(this));
this._commandWindow.setHandler('pagedown', this.nextActor.bind(this));
this._commandWindow.setHandler('pageup', this.previousActor.bind(this));
this.addWindow(this._commandWindow);
this._commandWindow.x = xEquipCMD;
};
var fullSlider_sceneEquip_createSlotWindow = Scene_Equip.prototype.createSlotWindow;
Scene_Equip.prototype.createSlotWindow = function() {
fullSlider_sceneEquip_createSlotWindow.call(this);
this._slotWindow.x = xEquipSlot;
};
var fullSlider_sceneEquip_createItemWindow = Scene_Equip.prototype.createItemWindow;
Scene_Equip.prototype.createItemWindow = function() {
fullSlider_sceneEquip_createItemWindow.call(this);
this._itemWindow.y = xEquipItem;
};
Scene_Equip.prototype.update = function() {
Scene_MenuBase.prototype.update.call(this);
if (this._panOut === false) {
if (this._helpWindow.y != xeHELPEnd) {
if (this._helpWindow.y >= xeHELPEnd) {
this._helpWindow.y = xeHELPEnd;
} else {
this._helpWindow.y += xeHELPSpeed;
}
}
if (this._statusWindow.x != xEquipStatusEnd) {
if (this._statusWindow.x >= xEquipStatusEnd) {
this._statusWindow.x = xEquipStatusEnd;
} else {
this._statusWindow.x += xEquipStatusSpeed;
}
}
if (this._commandWindow.x != xEquipCMDEnd) {
if (this._commandWindow.x <= xEquipCMDEnd) {
this._commandWindow.x = xEquipCMDEnd;
} else {
this._commandWindow.x -= xEquipCMDSpeed;
}
}
if (this._slotWindow.x != xEquipSlotEnd) {
if (this._slotWindow.x <= xEquipSlotEnd) {
this._slotWindow.x = xEquipSlotEnd;
} else {
this._slotWindow.x -= xEquipSlotSpeed;
}
}
if (this._itemWindow.y != xEquipItemEnd) {
if (this._itemWindow.y <= xEquipItemEnd) {
this._itemWindow.y = xEquipItemEnd;
} else {
this._itemWindow.y -= xEquipItemSpeed;
}
}
} else {
if (this._helpWindow.y != xeHELP) {
if (this._helpWindow.y <= xeHELP) {
this._helpWindow.y = xeHELP;
} else {
this._helpWindow.y -= xeHELPSpeed;
}
}
if (this._statusWindow.x != xEquipStatus) {
if (this._statusWindow.x <= xEquipStatus) {
this._statusWindow.x = xEquipStatus;
} else {
this._statusWindow.x -= xEquipStatusSpeed;
}
}
if (this._commandWindow.x != xEquipCMD) {
if (this._commandWindow.x >= xEquipCMD) {
this._commandWindow.x = xEquipCMD;
} else {
this._commandWindow.x += xEquipCMDSpeed;
}
}
if (this._slotWindow.x != xEquipSlot) {
if (this._slotWindow.x >= xEquipSlot) {
this._slotWindow.x = xEquipSlot;
} else {
this._slotWindow.x += xEquipSlotSpeed;
}
}
if (this._itemWindow.y != xEquipItem) {
if (this._itemWindow.y >= xEquipItem) {
this._itemWindow.y = xEquipItem;
} else {
this._itemWindow.y += xEquipItemSpeed;
}
}
if (this._timer != 0) {
if (this._timer <= 4) {
this.popScene();
} else {
this._timer -= 4;
}
}
}
if (Input.isTriggered('cancel')) {
this._panOut = true;
SoundManager.playCancel();
}
};
Scene_Status.prototype.initialize = function() {
Scene_MenuBase.prototype.initialize.call(this);
this._panOut = false;
this._status_timer = 60;
};
Scene_Status.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this._statusWindow = new Window_Status();
// this._statusWindow.setHandler('cancel', this.popScene.bind(this));
this._statusWindow.setHandler('pagedown', this.nextActor.bind(this));
this._statusWindow.setHandler('pageup', this.previousActor.bind(this));
this.addWindow(this._statusWindow);
this.refreshActor();
this._statusWindow.x = xStatusScene;
};
Scene_Status.prototype.update = function() {
Scene_MenuBase.prototype.update.call(this);
if (this._panOut === false) {
if (this._statusWindow.x != xStatusSceneEnd) {
if (this._statusWindow.x >= xStatusSceneEnd) {
this._statusWindow.x = xStatusSceneEnd;
} else {
this._statusWindow.x += xStatusSceneSpeed;
}
}
} else {
if (this._status_timer != 0) {
if (this._status_timer <= 4) {
this.popScene();
} else {
this._status_timer -= 4;
}
}
if (this._statusWindow.x != -900) {
if (this._statusWindow.x <= -900) {
this._statusWindow.x = -900;
} else {
this._statusWindow.x -= 50;
}
}
}
if (Input.isTriggered('cancel')) {
this._panOut = true;
SoundManager.playCancel();
}
}
})();