Status
Not open for further replies.

stramin

Veteran
Veteran
Joined
Nov 4, 2012
Messages
233
Reaction score
98
First Language
spanish
Primarily Uses
N/A
I have some maps where the menu is not enabled (I use the "Change menu access" command for this).

JavaScript:
$gameSystem.disableMenu();

I recently made some menus accessible by keys (for example, pressing M key opens the map, pressing I key opens the inventory), now I would like to avoid this behavior when the menu is disabled, for this I need to know when the menu is enabled.

how to know when the menu is enabled?
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
561
Reaction score
239
First Language
PT-BR
Primarily Uses
RM2k3
Try:
JavaScript:
$gameSystem._menuEnabled
(Return boolean)
 
Last edited:

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,905
Reaction score
4,831
First Language
EN, FR
Primarily Uses
RMMZ

I've moved this thread to Javascript/Plugin Support[MOVE/]. Please be sure to post your threads in the correct forum next time. Thank you.

 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,452
Reaction score
14,815
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Took a small break by playing VR. Latest update of these glasses unfortunately caused a little of trouble but it can be fixed with a manual operation.

Until You Fall is freaking awesome.
I am SO HYPED to share this trailer with everyone when its done. I almost want to tear up i had no idea how far i came along with Fallen Feather in these last 3 years.
how it looks from the top
Hike was successful guys! I made it to the top!
Add Film-like Visual Effects During Test-Play, Deploy Games with Electron | RPG Maker News #69

Forum statistics

Threads
112,187
Messages
1,066,469
Members
145,790
Latest member
LiteSilverwind
Top