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

Status
Not open for further replies.

ACECORP

Founder & Entrepreneur
Veteran
Joined
Apr 6, 2016
Messages
253
Reaction score
39
First Language
English
Primarily Uses
RMMV
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
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
I can add it but you need tell us what your plugins for skill submenus


but i have problem with save menu :(
 

ACECORP

Founder & Entrepreneur
Veteran
Joined
Apr 6, 2016
Messages
253
Reaction score
39
First Language
English
Primarily Uses
RMMV
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
 
Last edited by a moderator:

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
i need skill menu plugin
 

ACECORP

Founder & Entrepreneur
Veteran
Joined
Apr 6, 2016
Messages
253
Reaction score
39
First Language
English
Primarily Uses
RMMV
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?
 
Last edited by a moderator:

oktchau

Veteran
Veteran
Joined
Jan 4, 2016
Messages
52
Reaction score
6
First Language
Portuguese
Primarily Uses
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.
 
Last edited by a moderator:

ACECORP

Founder & Entrepreneur
Veteran
Joined
Apr 6, 2016
Messages
253
Reaction score
39
First Language
English
Primarily Uses
RMMV
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');
};
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
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');
};
 
Last edited by a moderator:

ACECORP

Founder & Entrepreneur
Veteran
Joined
Apr 6, 2016
Messages
253
Reaction score
39
First Language
English
Primarily Uses
RMMV
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
 
Last edited by a moderator:

ACECORP

Founder & Entrepreneur
Veteran
Joined
Apr 6, 2016
Messages
253
Reaction score
39
First Language
English
Primarily Uses
RMMV
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. 
 
Joined
May 24, 2020
Messages
18
Reaction score
19
First Language
English
Primarily Uses
RMMV
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.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,867
Reaction score
5,240
First Language
Dutch
Primarily Uses
RMXP

@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.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top