Window_MenuCommand example?

Joined
Jun 30, 2017
Messages
40
Reaction score
30
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
1,696
Reaction score
556
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
2,916
Reaction score
3,949
First Language
English
Primarily Uses
RMMV

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

Ive got a long lost half uncle. Thats real cool.
I forget what is bumping rule in this forum. Is anyone know? Thank you.
BCj
Ew, why does my blogpost on the rpgmaker.net site look like a garbled mess? Are html codes disabled or something?
I feel that I should cut down on my order queue so I can get some more time for my projects, its been quite a longggg while since I worked on them LOL
I friend of mine insisted on practicing dubbing things with him... and its quite funny, yet, it really takes a huge amount of practice!

Forum statistics

Threads
97,883
Messages
947,622
Members
129,117
Latest member
Babiboo
Top