22 #ifndef NUVIE_VIEWS_SCROLL_WIDGET_GUMP_H 23 #define NUVIE_VIEWS_SCROLL_WIDGET_GUMP_H 25 #include "ultima/nuvie/misc/call_back.h" 26 #include "ultima/nuvie/gui/widgets/gui_widget.h" 27 #include "ultima/nuvie/gui/widgets/msg_scroll.h" 28 #include "ultima/nuvie/fonts/font.h" 29 #include "ultima/shared/std/containers.h" 30 #include "ultima/shared/std/string.h" 52 static const int SCROLLWIDGETGUMP_W = 200;
53 static const int SCROLLWIDGETGUMP_H = 100;
74 bool parse_token(
MsgText *token)
override;
76 bool can_display_prompt()
const override {
80 void Display(
bool full_redraw)
override;
82 void display_prompt()
override {}
84 void display_string(
const Std::string &s,
Font *f,
bool include_on_map_window)
override {
85 return MsgScroll::display_string(s, f, include_on_map_window);
88 void set_font(uint8 font_type)
override;
89 bool is_garg_font()
override;
91 bool can_fit_token_on_msgline(
MsgLine *msg_line,
MsgText *token)
override;
94 GUI_status MouseDown(
int x,
int y, Shared::MouseButton button)
override;
95 GUI_status MouseUp(
int x,
int y, Shared::MouseButton button)
override {
98 GUI_status MouseWheel(sint32 x, sint32 y)
override;
100 void move_scroll_down()
override {
101 scroll_movement_event(SCROLL_DOWN);
103 void move_scroll_up()
override {
104 scroll_movement_event(SCROLL_UP);
112 GUI_status scroll_movement_event(ScrollEventType event);
113 void update_arrows();
Definition: configuration.h:61
Definition: msg_scroll.h:75
Definition: detection.h:27
Definition: msg_scroll.h:54
Definition: keyboard.h:294