22 #ifndef MADS_USER_INTERFACE_H 23 #define MADS_USER_INTERFACE_H 25 #include "common/scummsys.h" 26 #include "common/rect.h" 27 #include "common/str.h" 28 #include "mads/msurface.h" 29 #include "mads/screen.h" 33 enum { IMG_SPINNING_OBJECT = 200, IMG_TEXT_UPDATE = 201 };
35 enum ScrollbarActive {
39 SCROLLBAR_ELEVATOR = 3,
93 void draw(
bool updateFlag,
bool delFlag);
108 void setup(
int globalId, ...);
113 void set(
int quoteId, ...);
119 int read(
int quoteId);
124 void write(
int quoteId,
bool flag);
136 int _invSpritesIndex;
140 int _noSegmentsActive;
141 int _someSegmentsActive;
151 bool getBounds(ScrCategory category,
int invIndex,
Common::Rect &bounds);
161 void drawConversationList();
171 void drawInventoryList();
176 void drawItemVocabList();
186 void scrollbarChanged();
191 void writeVocab(ScrCategory category,
int id);
196 ScrCategory _category;
198 int _inventoryTopIndex;
199 int _selectedInvIndex;
200 int _selectedActionIndex;
201 int _selectedItemVocabIdx;
202 ScrollbarActive _scrollbarActive, _scrollbarOldActive;
203 int _highlightedCommandIndex;
204 int _highlightedInvIndex;
205 int _highlightedItemVocabIndex;
206 bool _inventoryChanged;
207 int _categoryIndexes[8];
210 bool _scrollbarQuickly;
211 uint32 _scrollbarMilliTime;
212 int _scrollbarElevator, _scrollbarOldElevator;
213 ScrollbarActive _scrollbarStrokeType;
228 void setup(InputMode inputMode);
230 void drawTextElements();
241 int transparencyIndex = -1);
246 void loadInventoryAnim(
int objectId);
251 void noInventoryAnim();
256 void doBackgroundAnimation();
261 void inventoryAnim();
263 void categoryChanged();
269 void selectObject(
int invIndex);
271 void updateSelection(ScrCategory category,
int newIndex,
int *idx);
276 void changeScrollBar();
278 void scrollerChanged();
280 void scrollInventory();
286 void updateInventoryScroller();
291 void emptyConversationList();
296 void addConversationMessage(
int vocabId,
const Common::String &msg);
Definition: msurface.h:55
Definition: animation.h:66
Definition: serializer.h:79
Definition: user_interface.h:64
UISlots(MADSEngine *vm)
Definition: user_interface.h:71
Definition: user_interface.h:132
Definition: msurface.h:172
Definition: user_interface.h:46
Definition: user_interface.h:96