UI: Add UILayout.operator_menu_hold

This is an operator button that opens a menu when the button is held.
This commit is contained in:
2017-11-02 04:30:07 +11:00
parent 07dbff7dc1
commit 3ec4d0b51b
8 changed files with 234 additions and 28 deletions

View File

@@ -264,6 +264,10 @@ struct uiBut {
void *rename_arg1;
void *rename_orig;
/* Run an action when holding the button down. */
uiButHandleHoldFunc hold_func;
void *hold_argN;
uiLink *link;
short linkto[2]; /* region relative coords */