Window_MenuCommand example?

Joined
Jun 30, 2017
Messages
42
Reaction score
35
First Language
spanish
Primarily Uses
RMMV
Can someone show a source example about how to make a new scene with a list of choices?
I am not getting how to use Window_MenuCommand to create my own menu/callbacks.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,895
Reaction score
1,029
First Language
Dutch
Primarily Uses
RMMV
check the rpg_scene file, its in there, but you also need window_base where also is something in it.
in case you want to alter the names on the menu list alone, maybe check YEP_MainMenuManager
and add stuff you want.

EDIT:
in rpg_scenes, you can find this line:
Scene_Menu.prototype.createCommandWindow = function()

thats where the menu command is written down,

this._commandWindow.setHandler('item', this.commandItem.bind(this));

that line is the command window, sethandler, "item" is the name in the menu
while "this.commandItem.bind(this)" is a function of :

Scene_Menu.prototype.commandItem = function() {
to tell what is happening.

but creating a menu isn't easy unless you know what you are doing.
 
Last edited:

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,682
First Language
English
Primarily Uses
RMMZ

I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.

 

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

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top