22 #ifndef NUVIE_VIEWS_CONTAINER_WIDGET_H 23 #define NUVIE_VIEWS_CONTAINER_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" 32 static const int CONTAINER_WIDGET_ROWS = 3;
33 static const int CONTAINER_WIDGET_COLS = 4;
53 Obj *selected_obj, *target_obj, *ready_obj;
63 const Tile *empty_tile;
70 virtual void set_actor(
Actor *a);
71 const Actor *get_actor()
const {
74 Obj *get_container() {
77 void set_container(
Obj *obj) {
82 bool is_showing_container()
const {
83 return (container_obj !=
nullptr ?
true :
false);
85 void Display(
bool full_redraw)
override;
87 GUI_status MouseDown(
int x,
int y, Shared::MouseButton button)
override;
88 GUI_status MouseUp(
int x,
int y, Shared::MouseButton button)
override;
89 GUI_status MouseMotion(
int x,
int y, uint8 state)
override;
90 GUI_status MouseDouble(
int x,
int y, Shared::MouseButton button)
override;
91 GUI_status MouseClick(
int x,
int y, Shared::MouseButton button)
override;
92 GUI_status MouseDelayed(
int x,
int y, Shared::MouseButton button)
override;
94 void drag_drop_success(
int x,
int y,
int message,
void *data)
override;
95 void drag_drop_failed(
int x,
int y,
int message,
void *data)
override;
97 bool drag_accept_drop(
int x,
int y,
int message,
void *data)
override;
98 void drag_perform_drop(
int x,
int y,
int message,
void *data)
override;
100 void drag_draw(
int x,
int y,
int message,
void *data)
override;
106 inline uint16 get_list_position(
int x,
int y);
107 void display_inventory_list();
108 inline void display_qty_string(uint16 x, uint16 y, uint16 qty);
109 inline void display_special_char(uint16 x, uint16 y, uint8 quality);
110 void display_arrows();
112 bool drag_set_target_obj(
int x,
int y);
118 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