22 #ifndef NUVIE_VIEWS_VIEW_MANAGER_H 23 #define NUVIE_VIEWS_VIEW_MANAGER_H 45 class ContainerViewGump;
49 class MDSkyStripWidget;
51 typedef enum { CURSOR_HEAD, CURSOR_NECK, CURSOR_CHEST, CURSOR_RIGHT_HAND, CURSOR_LEFT_HAND, CURSOR_RIGHT_RING, CURSOR_LEFT_RING, CURSOR_FEET,
52 CURSOR_LEFT, CURSOR_RIGHT, CURSOR_COMBAT, CURSOR_CHECK, CURSOR_HEART, CURSOR_PARTY, CURSOR_INVENTORY
79 uint8 doll_next_party_member;
96 void set_portrait_mode(
Actor *actor,
const char *name);
97 void set_inventory_mode();
98 void set_party_mode();
99 void set_actor_mode();
100 void set_spell_mode(
Actor *caster,
Obj *spell_container,
bool eventMode =
false);
102 void close_spell_mode();
104 View *get_current_view() {
111 return inventory_view;
114 return portrait_view;
126 void close_current_view();
128 void open_doll_view(
Actor *actor);
130 void open_container_view(
Obj *obj) {
131 open_container_view(
nullptr, obj);
133 void open_container_view(
Actor *actor) {
134 open_container_view(actor,
nullptr);
137 void close_container_view(
Actor *actor);
139 void open_mapeditor_view();
140 void open_portrait_gump(
Actor *a);
141 void open_sign_gump(
const char *sign_text, uint16 length);
142 void open_scroll_gump(
const char *text, uint16 length);
144 void close_all_gumps();
145 bool gumps_are_active() {
146 return !gumps.
empty();
149 bool set_current_view(
View *view);
150 void double_click_obj(
Obj *obj);
151 unsigned int get_display_weight(
float weight);
161 Actor *doll_view_get_next_party_member();
164 void open_container_view(
Actor *actor,
Obj *obj);
166 void add_view(
View *view);
Definition: managed_surface.h:51
Definition: portrait.h:40
Definition: party_view.h:40
Definition: configuration.h:61
Definition: printman.h:30
Definition: tile_manager.h:145
Definition: detection.h:27
Definition: portrait_view.h:42
Definition: doll_view_gump.h:41
Definition: sun_moon_ribbon.h:30
Definition: draggable_view.h:34
Definition: spell_view.h:40
Definition: obj_manager.h:75
Definition: inventory_view.h:40
bool empty() const
Definition: list.h:258
Definition: view_manager.h:55
Definition: container_view_gump.h:40
Definition: actor_view.h:38