Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Add on for CGMV Encyclopedia to add it into the Main Menu
- */
- //=============================================================================
- //-----------------------------------------------------------------------------
- // Encyclopedia Added into The Main Menu
- //-----------------------------------------------------------------------------
- OverWrite_WindowMenuCommand = Window_MenuCommand.prototype.addOriginalCommands;
- Window_MenuCommand.prototype.addOriginalCommands = function() {
- OverWrite_WindowMenuCommand.call(this);
- if(!Imported.YEP_MainMenuManager){
- this.addCommand(CGMV.Encyclopedia.EncyclopediaWindowTitle, 'encyclopedia', true);
- }
- };
- OverWrite_createCommandWindow = Scene_Menu.prototype.createCommandWindow;
- Scene_Menu.prototype.createCommandWindow = function() {
- OverWrite_createCommandWindow.call(this);
- this._commandWindow.setHandler('encyclopedia', this.commandEncyclopedia.bind(this));
- }
- Scene_Menu.prototype.commandEncyclopedia = function() {
- SceneManager.push(CGMV_Scene_Encyclopedia);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement