methods related to main menu manipulation
Methods
-
static addBtnToMainMenu(displayText, cmdText, cb)
-
add a new button to the main menu
Parameters:
Name Type Description displayText
string the text to display
cmdText
string the string to name the command (must be unique)
cb
function the callback
-
static removeBtnFromMainMenu()
-
removes a button from the main menu forcibly. That is to say this is able
to override other mods that add buttons to main menu, it will just disable the command from displaying period.