22 #ifndef NUVIE_VIEWS_INVENTORY_WIDGET_H 23 #define NUVIE_VIEWS_INVENTORY_WIDGET_H 25 #include "ultima/nuvie/gui/widgets/gui_widget.h" 26 #include "ultima/nuvie/core/obj_manager.h" 27 #include "ultima/nuvie/views/inventory_message.h" 52 Obj *selected_obj, *target_obj, *ready_obj;
57 uint8 objlist_offset_x, objlist_offset_y;
60 const Tile *empty_tile;
67 void set_actor(
Actor *a);
71 Obj *get_container() {
74 void set_container(
Obj *obj) {
79 Obj *get_prev_container();
80 void set_prev_container();
81 bool is_showing_container() {
82 return (container_obj !=
nullptr ?
true :
false);
84 void Display(
bool full_redraw)
override;
86 GUI_status MouseDown(
int x,
int y, Shared::MouseButton button)
override;
87 GUI_status MouseUp(
int x,
int y, Shared::MouseButton button)
override;
88 GUI_status MouseMotion(
int x,
int y, uint8 state)
override;
89 GUI_status MouseDouble(
int x,
int y, Shared::MouseButton button)
override;
90 GUI_status MouseClick(
int x,
int y, Shared::MouseButton button)
override;
91 GUI_status MouseDelayed(
int x,
int y, Shared::MouseButton button)
override;
92 GUI_status MouseWheel(sint32 x, sint32 y)
override;
93 void drag_drop_success(
int x,
int y,
int message,
void *data)
override;
94 void drag_drop_failed(
int x,
int y,
int message,
void *data)
override;
96 bool drag_accept_drop(
int x,
int y,
int message,
void *data)
override;
97 void drag_perform_drop(
int x,
int y,
int message,
void *data)
override;
99 void drag_draw(
int x,
int y,
int message,
void *data)
override;
101 uint8 get_num_rows()
const {
102 return game_type == NUVIE_GAME_U6 ? 3 : 4;
109 inline uint16 get_list_position(
int x,
int y);
110 void display_inventory_container();
111 void display_inventory_list();
112 inline void display_qty_string(uint16 x, uint16 y, uint16 qty);
113 inline void display_special_char(uint16 x, uint16 y, uint8 quality);
114 void display_arrows();
116 bool drag_set_target_obj(
int x,
int y);
122 Obj *get_obj_at_location(
int x,
int y);
Definition: configuration.h:61
Definition: tile_manager.h:145
Definition: detection.h:27
Definition: obj_manager.h:75
Definition: tile_manager.h:113
Definition: gui_callback.h:31