22 #ifndef NUVIE_VIEWS_VIEW_MANAGER_H 23 #define NUVIE_VIEWS_VIEW_MANAGER_H 45 class ContainerViewGump;
49 class MDSkyStripWidget;
53 typedef enum { CURSOR_HEAD, CURSOR_NECK, CURSOR_CHEST, CURSOR_RIGHT_HAND, CURSOR_LEFT_HAND, CURSOR_RIGHT_RING, CURSOR_LEFT_RING, CURSOR_FEET,
54 CURSOR_LEFT, CURSOR_RIGHT, CURSOR_COMBAT, CURSOR_CHECK, CURSOR_HEART, CURSOR_PARTY, CURSOR_INVENTORY
81 uint8 doll_next_party_member;
98 void set_portrait_mode(
Actor *actor,
const char *name);
99 void set_inventory_mode();
100 void set_party_mode();
101 void set_actor_mode();
102 void set_spell_mode(
Actor *caster,
Obj *spell_container,
bool eventMode =
false);
104 void close_spell_mode();
106 View *get_current_view() {
113 return inventory_view;
116 return portrait_view;
128 void close_current_view();
130 void open_doll_view(
Actor *actor);
132 void open_container_view(
Obj *obj) {
133 open_container_view(
nullptr, obj);
135 void open_container_view(
Actor *actor) {
136 open_container_view(actor,
nullptr);
139 void close_container_view(
Actor *actor);
141 void open_mapeditor_view();
142 void open_portrait_gump(
Actor *a);
143 void open_sign_gump(
const char *sign_text, uint16 length);
144 void open_scroll_gump(
const char *text, uint16 length);
146 void close_all_gumps();
147 bool gumps_are_active() {
148 return !gumps.
empty();
151 bool set_current_view(
View *view);
152 void double_click_obj(
Obj *obj);
153 unsigned int get_display_weight(
float weight);
163 Actor *doll_view_get_next_party_member();
166 void open_container_view(
Actor *actor,
Obj *obj);
168 void add_view(
View *view);
Definition: managed_surface.h:51
Definition: portrait.h:40
Definition: party_view.h:40
Definition: configuration.h:61
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: containers.h:200
Definition: obj_manager.h:75
Definition: inventory_view.h:40
bool empty() const
Definition: list.h:219
Definition: view_manager.h:57
Definition: container_view_gump.h:40
Definition: actor_view.h:38