Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Add this code at the bottom of CGMV Achievement plugin
- //Achivements Menu
- OverWrite_WindowMenuCommand = Window_MenuCommand.prototype.addOriginalCommands;
- Window_MenuCommand.prototype.addOriginalCommands = function() {
- OverWrite_WindowMenuCommand.call(this);
- if(!Imported.YEP_MainMenuManager){
- this.addCommand("Achivements", 'achievement', true);
- }
- };
- OverWrite_createCommandWindow = Scene_Menu.prototype.createCommandWindow;
- Scene_Menu.prototype.createCommandWindow = function() {
- OverWrite_createCommandWindow.call(this);
- this._commandWindow.setHandler('achievement', this.commandAchievements.bind(this));
- }
- Scene_Menu.prototype.commandAchievements = function() {
- SceneManager.push(CGMV_Scene_Achievements);
- };
- //In Yanfly Main Menu Core
- //Set the Symbol: achievement
- //And Set Main Menu Bind: SceneManager.push(CGMV_Scene_Achievements)
- //Make the sure the name is in quotation marks ie "Trophies" and you can use the enable and show however you want.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement