diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-27 01:40:34 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-27 01:40:34 -0800 |
commit | 0f8cd49c9c18260156782afc65bbea7b30a92804 (patch) | |
tree | 47f6395d1ccb9269f3b8e269a0bb22b72230e348 /crawl-ref/source/menu.h | |
parent | 3e6a77f46bac1b303645b7391f72e86c882986c9 (diff) | |
download | crawl-ref-0f8cd49c9c18260156782afc65bbea7b30a92804.tar.gz crawl-ref-0f8cd49c9c18260156782afc65bbea7b30a92804.zip |
Add third menu action type ACT_MISC
To the menu actions ACT_EXECUTE and ACT_EXAMINE add the third action
type ACT_MISC, for things like deleting menu entries. The member
"allow_toggle" has been changed to "action_cycle", with the possible
values CYCLE_NONE (default) , CYCLE_TOGGLE (allow_toggle == true), and
CYCLE_CYCLE (cycle through all three possible action types).
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r-- | crawl-ref/source/menu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h index 4b93916447..fb822388ed 100644 --- a/crawl-ref/source/menu.h +++ b/crawl-ref/source/menu.h @@ -349,8 +349,8 @@ public: drawitem_tfn f_drawitem; keyfilter_tfn f_keyfilter; - bool allow_toggle; - enum action { ACT_EXECUTE, ACT_EXAMINE, ACT_NUM } menu_action; + enum cycle { CYCLE_NONE, CYCLE_TOGGLE, CYCLE_CYCLE } action_cycle; + enum action { ACT_EXECUTE, ACT_EXAMINE, ACT_MISC, ACT_NUM } menu_action; protected: MenuEntry *title; |