Skip to content

emu.register_menu documentation? #159

Answered by cuavas
Jakobud asked this question in Q&A
Discussion options

You must be logged in to vote

It's poorly designed and needs to be replaced. It won't be documented in its current form because it's basically unsupportable. You can look at the source of the menu class behind it, or follow examples in existing plugins.

The three return values are:

  • Table of menu items
  • Index of item to move highlight to
  • Menu processing flags

Each entry in the table of items is:

  • Item text (some values are magic, like --- for producing a separator)
  • Value text
  • Item flags (e.g. off for a disabled item or l and r to show the arrows for adjustable values)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jakobud
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