Skip to content

Can you put a menu or sub-menu inside an If else statement or void function? #129

Answered by forntoh
Makima-sama asked this question in Q&A
Discussion options

You must be logged in to vote

It's not possible to build a menu dynamically (on runtime) with this menu system, you can update already existing menus but can't create.

However, your logic seems very simple, you can just update the text of the ITEM_COMMAND and like set a bool var to true which you can check in the callback function and decide the appropriate action to take.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Makima-sama
Comment options

Answer selected by Makima-sama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants