22 #ifndef M4_BURGER_ROOMS_SECTION9_MENU_ROOM_H 23 #define M4_BURGER_ROOMS_SECTION9_MENU_ROOM_H 25 #include "common/array.h" 26 #include "m4/wscript/ws_machine.h" 27 #include "m4/burger/rooms/room.h" 33 constexpr
int NO_BUTTONS_HILITED = -1;
35 enum ButtonState { BTNSTATE_DISABLED = 0, BTNSTATE_ENABLED = 1, BTNSTATE_HIGHLIGHTED = 2, BTNSTATE_PRESSED = 3 };
42 int32 _frame_disabled;
44 int32 _frame_highlighted;
62 const char *_menuName;
63 const char *_clickName;
65 int _highlightedButton = -1;
66 int _activeButton = -1;
77 int32 is_mouse_over_a_button()
const;
90 void drawButton(
int index);
100 void setButtonState(
int index, ButtonState newState);
110 _menuName(menuName), _clickName(clickName) {}
113 void init()
override;
114 void daemon()
override;
Definition: ws_machine.h:130
Definition: database.h:28