UI: add UI_SELECT_DRAW flag

Allow to draw as pressed w/o interfering with behavior.

Resolves issue where buttons raised on mouse-over.
This commit is contained in:
2017-11-03 00:45:30 +11:00
parent 8a3728800c
commit 9ece0ee5fe
3 changed files with 7 additions and 2 deletions

View File

@@ -119,6 +119,7 @@ enum {
UI_ACTIVE = (1 << 2),
UI_HAS_ICON = (1 << 3),
UI_HIDDEN = (1 << 4),
UI_SELECT_DRAW = (1 << 5), /* Display selected, doesn't impact interaction. */
/* warn: rest of uiBut->flag in UI_interface.h */
};