Add a 'cancel', 'close', or 'finish' option to the item, save, and skill submenus?

Is there an easy way to add a cancel, close, or finish option to the item, save, and skill submenus that are opened off of the main menu?


How might I approach this? I specifically need close or finish to be inside of those submenus?


If you look at the third screen shot, there is a 'cancel' option under profile. Thats what I need to put on the Item, Save, and Skill submenus. 

Screen Shot 2016-06-09 at 8.52.03 PM.png

Screen Shot 2016-06-09 at 8.52.15 PM.png

Screen Shot 2016-06-09 at 8.52.49 PM.png
I can add it but you need tell us what your plugins for skill submenus


but i have problem with save menu 🙁
I am using yanfly main menu manager. 


How would I be able to add a close option to the Item submenu or the Skill submenu?


I do this in the plugin dialogue box but it adds close to the main menu, not the Item, Skill, and Save submenus... and thats where I need them.. in those submenus. 

[SIZE=11pt]Name: 'Close Menu'[/SIZE]


[SIZE=11pt]Symbol: clsMenu[/SIZE]


[SIZE=11pt]Show: true[/SIZE]


Enabled: true


[SIZE=11pt]Ext[/SIZE]


[SIZE=11pt]Main Bind: this.popScene.bind(this)[/SIZE]



Screen Shot 2016-06-09 at 9.52.19 PM.png
Untitled menu.jpg
i need skill menu plugin
I did exactly what you posted, but that puts a second close command on the main menu.


I already have a close command on the main menu via the code I posted above. 


MAIN MENU SCREEN SHOT (SHOWING CLOSE MENU I ALREADY HAVE)
​


Screen Shot 2016-06-09 at 10.15.33 PM.png


I need the close command to be inside the Item submenu right below "Key Items"


How do I add a close menu to the Item sub menu shown in the image below?


To get to the item sub menu, I open the main menu, and I select Item, then I am taken to the Item submenu.


ITEM SUB MENU SCREEN SHOT (SHOWING WHERE I WANT TO PUT A CLOSE MENU)
​


575a0fafd6e09_ScreenShot2016-06-09at8.52.03PM.png.e0589116ac85cc8d8f571e96c5384ed5.png


That is where I need to put the 'close' command, right there in the Item submenu. 


How can I do that?
Not sure if it's what you're looking for, but the plugin Advanced Menus  adds "back" buttons on most menus.


Sorry, this won't work for you.
you gave me plugin not like your menu


this my menu 


close menu.jpg


View attachment CloseMenu.js
Thanks for showing me that item menu code.


Since I am using YEP_MainMenuManager.js and the Yanfly plugin suite, I think I need to look inside their code and see how they implement the ItemCategory.menu and then try and change it so that it achieves what your code below does with the cancel option. 


Opening up the YEP_MainMenuManager.js file, it doesn't contain anything obvious pertaining to an Item submenu, so I have a feeling that maybe the Item submenu code is actually located elsewhere in a different yanfly plugin like inside the YEP_CoreEngine.js or one of the other foundation level yanfly plugins. 


I was hoping to find someone who uses the Yanfly plugin suite and already did this. 


If I implement my own code, like you did, it could conflict with something yanfly plugins already do and cause errors. I encountered that when I tried to do a different plugin for a directional pad. I had to figure out how to do it in yanfly so there wouldn't be any conflicts. 


You at least pointed me in the direction I need to go, so I thank you for that. 🙂

Window_ItemCategory.prototype.maxCols = function() {
    return 5;
};
Window_ItemCategory.prototype.makeCommandList = function() {
    this.addCommand(TextManager.item,    'item');
    this.addCommand(TextManager.weapon,  'weapon');
    this.addCommand(TextManager.armor,   'armor');
    this.addCommand(TextManager.keyItem, 'keyItem');
    this.addCommand('Close Menu', 'cancel');
};
your welcome


try add this in the plugin i give, i think it will work for skill menu


Window_SkillType.prototype.makeCommandList = function() {
    if (this._actor) {
        var skillTypes = this._actor.addedSkillTypes();
        skillTypes.sort(function(a, b ) {
            return a - b;
        });
        skillTypes.forEach(function(stypeId) {
            var name = $dataSystem.skillTypes[stypeId];
            this.addCommand(name, 'skill', true, stypeId);
        }, this);
    }
    this.addCommand('Close Menu', 'cancel');
};
It adds adds a Close Menu and Magic command, but somehow it removes the  Equip Skills, Learn Skills, and TP Mode commands. Definitely getting close... so far using CloseMenu.js does't appear to conflict with yanfly suite.


SCREEN SHOT OF ORIGINAL SKILLS SUBMENU
​


Screen Shot 2016-06-09 at 11.06.38 PM.png


SCREEN SHOT OF SKILLS SUBMENU AFTER ADDING THE CUSTOM CLOSE MENU CODE
​


Screen Shot 2016-06-09 at 11.03.59 PM.png
​
Does anyone know if there is a mechanism to ask yanfly to add functionality to his plugins?  I tried to insert a close menu into the items and the skills sub menus, but when I do somehow all the items disappear from the items menu. They still exist but they are invisible. I can't figure out how to add it as a separate plugin so it is compatable and I don't want to manually insert code into his plugin because that will be a nightmare for updates. 
Here is a plugin to exit or go back from almost any menu in the game. You can decide what to name the exit command, as well as what menus it should be included in.

@BallgameStudios , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


It's nice that you want to help, but please don't resurrect a four year old thread. If you want to share your plugin, please make a thread in Plugin Releases.

Original thread: https://forums.rpgmakerweb.com/threads/add-a-cancel-close-or-finish-option-to-the-item-save-and-skill-submenus.63304/