22 #ifndef NUVIE_CORE_COMMAND_BAR_H 23 #define NUVIE_CORE_COMMAND_BAR_H 25 #include "ultima/shared/std/string.h" 26 #include "ultima/nuvie/gui/widgets/gui_widget.h" 27 #include "ultima/nuvie/misc/call_back.h" 40 #define COMMANDBAR_USE_BUTTON 1 41 #define COMMANDBAR_ACTION_BUTTON 3 60 sint8 selected_action;
61 sint8 active_action_num;
64 void fill_square(uint8 pal_index);
66 uint8 bg_color, font_color;
69 virtual void display_information();
70 virtual GUI_status hit(uint8 num);
76 virtual bool init_buttons();
78 void Display(
bool full_redraw)
override;
79 GUI_status MouseDown(
int x,
int y, Shared::MouseButton button)
override;
81 update_display =
true;
84 void select_action(sint8 activate);
85 void set_combat_mode(
bool mode);
87 void set_selected_action(sint8 action) {
88 selected_action = action;
89 update_display =
true;
91 bool try_selected_action(sint8 command_num = -1);
92 sint8 get_selected_action()
const {
93 return selected_action;
98 void on_new_action(EventMode action);
100 GUI_status callback(uint16 msg,
GUI_CallBack *caller,
void *data)
override {
103 uint16 callback(uint16 msg,
CallBack *caller,
void *data)
override;
106 bool drag_accept_drop(
int x,
int y,
int message,
void *data)
override;
107 void drag_perform_drop(
int x,
int y,
int message,
void *data)
override;
Definition: u6_shape.h:47
Definition: detection.h:27
Definition: call_back.h:50
Definition: command_bar.h:49
Definition: tile_manager.h:113
Definition: nuvie_io.h:32
Definition: gui_callback.h:31