- //============================================================================= 
- // MOG_SceneOptions.js 
- //============================================================================= 
-   
- /*: 
-  * @plugindesc (v1.0) 仿Mog创建Scene_Options. 
-  * @author Moghunter 
-  * 
-  * @param Option LayoutX 
-  * @desc 选项命令X坐标。 
-  * @default 238 
-  * 
-  * @param Option LayoutY 
-  * @desc 选项命令Y坐标。 
-  * @default 190 
-  * 
-  * @param Option WLayoutX 
-  * @desc 选项Layout偏移X坐标。 
-  * @default -18 
-  * 
-  * @param Option WLayoutY 
-  * @desc 选项Layout偏移Y坐标。 
-  * @default -37 
-  * 
-  * @help   
-  * ============================================================================= 
-  * +++ MOG拓展 - Scene Options (v1.0) +++ 
-  * By Ryosonic 
-  * ============================================================================= 
-  * 仿Mog插件制作的Scene_Options。 
-  * 将Layout.png与OptionsLayout.png放入下面的文件夹 
-  * /img/menus/options/ 
-  * 
-  */ 
-   
- //============================================================================= 
- // ** PLUGIN PARAMETERS 
- //============================================================================= 
-   var Imported = Imported || {}; 
-    Imported.MOG_SceneFile = true; 
-    var Moghunter = Moghunter || {};  
-    Moghunter.parameters = PluginManager.parameters('MOG_SceneOptions'); 
-    Moghunter.scOptions_layoutX = Number(Moghunter.parameters['Option LayoutX'] || 238); 
-    Moghunter.scOptions_layoutY = Number(Moghunter.parameters['Option LayoutY'] || 190); 
-    Moghunter.scOptions_WlayoutX = Number(Moghunter.parameters['Option WLayoutX'] || -18); 
-    Moghunter.scOptions_WlayoutY = Number(Moghunter.parameters['Option WLayoutY'] || -37); 
-   
- //============================================================================= 
- // ** ImageManager 
- //============================================================================= 
-   
- //============================== 
- // * Menus 
- //============================== 
- ImageManager.loadMenusOptions = function(filename) { 
-     return this.loadBitmap('img/menus/options/', filename, 0, true); 
- }; 
-   
- //============================== 
- // * create 
- //============================== 
- var _mog_scOptions_create = Scene_Options.prototype.create; 
- Scene_Options.prototype.create = function() { 
-     _mog_scOptions_create.call(this); 
-     this.loadBitmaps(); 
-     this._optionsWindow.opacity = 0; 
-     this._optionsWindow.x = Moghunter.scOptions_layoutX; 
-     this._optionsWindow.y = 624; 
-     this.createSprites(); 
- }; 
-   
- //============================== 
- // * create Background 
- //============================== 
- var _mog_scOptions_createBackground = Scene_Options.prototype.createBackground; 
- Scene_Options.prototype.createBackground = function() { 
-         _mog_scOptions_createBackground.call(this); 
-         this._field = new Sprite(); 
-         this.addChild(this._field);         
- } 
-   
- //============================== 
- // * loadBitmaps 
- //============================== 
- Scene_Options.prototype.loadBitmaps = function() { 
-         this._layImg = (ImageManager.loadMenusOptions("Layout")); 
-         this._layOptionsImg = (ImageManager.loadMenusOptions("OptionsLayout")); 
- }; 
-   
- //============================== 
- // * create Sprites 
- //============================== 
- Scene_Options.prototype.createSprites = function() { 
-         this.createLayout(); 
-         this.createOptionsLayout(); 
- }; 
-   
- //============================== 
- // * create Sprites 
- //============================== 
- Scene_Options.prototype.createLayout = function() { 
-         this._layout = new Sprite(this._layImg); 
-         this._field.addChild(this._layout); 
- }; 
-   
- //============================== 
- // * create Options Layout 
- //============================== 
- Scene_Options.prototype.createOptionsLayout = function() { 
-         this._layoutOptions = new Sprite(this._layOptionsImg); 
-         this._layoutOptions.opacity = 0; 
-         this._layoutOptions.x = this._optionsWindow.x + Moghunter.scOptions_WlayoutX; 
-         this._layoutOptions.y = 624 + Moghunter.scOptions_WlayoutY; 
-         this._field.addChild(this._layoutOptions); 
- }; 
-   
- //============================== 
- // * update Slide 
- //============================== 
- Scene_Options.prototype.updateSlide = function() { 
-         this._optionsWindow.opacity = 0; 
-         this._optionsWindow.contentsOpacity += 5; 
-         if (this._optionsWindow.y > Moghunter.scOptions_layoutY) { 
-                 this._optionsWindow.y -= 10; 
-                 this._layoutOptions.y -= 10; 
-                 this._layoutOptions.opacity = this._optionsWindow.contentsOpacity; 
-                 if (this._optionsWindow.y <= Moghunter.scOptions_layoutY){ 
-                 this._optionsWindow.y = Moghunter.scOptions_layoutY; 
-                 this._layoutOptions.y = Moghunter.scOptions_layoutY + Moghunter.scOptions_WlayoutY 
- }; 
-         }; 
- }; 
-   
- //============================== 
- // * Update 
- //============================== 
- var _mog_scOptions_update = Scene_Options.prototype.update; 
- Scene_Options.prototype.update = function() { 
-         _mog_scOptions_update.call(this); 
-          if(this._layImg.isReady()) this.updateSlide(); 
- };