JS call to close the menu?

Just need to know the JS call to close the main menu (in-game).


Thanks in advance!
SceneManager.push(Scene_Map);
SceneManager.pop();


Works for any kind of menu. It will make the game go back to whatever was open before it.
Perfect, thanks both!


And bonus question: What's the JS call to reset the game completely?
double post, ignore
Define reset the game completely. Do you want to go back to the title screen? Do you want to remove saves from the game? What do you want?
Define reset the game completely. Do you want to go back to the title screen? Do you want to remove saves from the game? What do you want?



Booting the game as if you had just opened the executable. 🙂
location.reload is probably what you're looking for, then.

Original thread: https://forums.rpgmakerweb.com/threads/js-call-to-close-the-menu.72614/