I don't know exactly what you're going for, but you might find it easier to just event it.
The default RPG Maker menu works well, but sometimes you want one that fits your game’s aesthetic better or offers only the important options. Eventing your own picture-based menu is a great way to make sure your menu fits your game, so let’s take a look at how to make one.
www.rpgmakerweb.com
Mmm...I don't think so? Obviously, what each person considers to be "complicated" will vary by their individual brains, but I don't really think it's reasonable for someone who's proficient with object-oriented coding to think it's "horribly" complicated
😉
I grepped the word "menu" in the js folder. Immediately I know we can ignore rmmz_scenes, windows, and sprites because those are all going to have to do with how the menu is drawn and navigated, not how it's called by a button press.
So I click into rmmz_core and there are 8 instances of the word "menu" - none of them are calling the menu, although the last two are clearly related as they're defining the "menu" keypress.
So the only other option is rmmz_objects, which has 32 instances of the word "menu". When I get to item 30, that's clearly a hit - it's the event command for opening the menu.
View attachment 307705
At this point, we know one of our assumptions must have been wrong because we've gone through the remaining files and didn't find what we're looking for. But this part gave us the exact syntax to look for!
So I grep
SceneManager.push(Scene_Menu) and it comes right up in rmmz_scenes, the callMenu() method of Scene_Map.
View attachment 307707
I don't think this is horribly complicated - it took me less than five minutes, doing all of these steps
with typing them out for you and including screenshots. And, of course, since I have some experience with the codebase I know right off the bat that button presses to go between scenes is in rmmz_scenes and that I'd be looking for a push of Scene_Menu.
The question for you is - why do you need this? If you're replacing the default menu with your own, the logical thing would to keep it being of data type Scene_Menu and you just overwrite whichever windows and methods you need to make it look and act the way you like.
I don't see why you'd need to mess with how the menu is opened in the first place at all.