22 #ifndef MOHAWK_CSTIME_UI_H 23 #define MOHAWK_CSTIME_UI_H 25 #include "mohawk/cstime.h" 26 #include "graphics/fonts/winfont.h" 39 void addQaR(uint16 text, uint16 speech);
41 void end(
bool runEvents =
true);
42 void cleanupAfterFlapping();
50 uint getState() {
return _state; }
56 uint16 _currHover, _currEntry, _nextToProcess;
61 void highlightLine(uint line);
62 void unhighlightLine(uint line);
65 bool noHelperChanges();
73 uint getState() {
return _state; }
81 #define MAX_DISPLAYED_ITEMS 4 93 void insertItemInDisplay(uint16
id);
94 void removeItem(uint16
id);
100 void activateCuffs(
bool active);
101 void setCuffsFlashing();
102 bool getCuffsState() {
return _cuffsState; }
103 uint16 getCuffsShape() {
return _cuffsShape; }
105 bool isItemDisplayed(uint16
id);
106 uint16 getDisplayedNum(uint
id) {
return _displayedItems[id]; }
107 uint16 getLastDisplayedClicked() {
return getDisplayedNum(_draggedItem); }
109 void setState(uint state) { _state = state; }
110 uint getState() {
return _state; }
122 uint16 _displayedItems[MAX_DISPLAYED_ITEMS];
130 uint getState() {
return _state; }
131 void setState(uint state) { _state = state; }
133 void drawSmallBook();
142 #define NUM_NOTE_PIECES 3 148 uint getState() {
return _state; }
149 void setState(uint state) { _state = state; }
152 bool havePiece(uint16 piece);
153 void addPiece(uint16 piece, uint16 speech);
154 void drawSmallNote();
162 uint16 _pieces[NUM_NOTE_PIECES];
166 enum CSTimeInterfaceState {
167 kCSTimeInterfaceStateNormal = 1,
168 kCSTimeInterfaceStateDragStart = 2,
169 kCSTimeInterfaceStateDragging = 3,
170 kCSTimeInterfaceDroppedInventory = 4
178 void cursorInstall();
179 void cursorActivate(
bool state);
180 bool cursorGetState() {
return _cursorActive; }
182 void cursorChangeShape(uint16
id);
183 uint16 cursorGetShape();
184 void cursorSetShape(uint16
id,
bool reset =
true);
185 void cursorSetWaitCursor();
195 void cursorOverHotspot();
196 void setCursorForCurrentPoint();
198 void clearTextLine();
201 void clearDialogArea();
202 void clearDialogLine(uint line);
203 void displayDialogLine(uint16
id, uint line, byte color = 32);
205 void drawTextIdToBubble(uint16
id);
209 void startDragging(uint16
id);
212 uint16 getDraggedNum() {
return _draggedItem; }
214 bool grabbedFromInventory();
216 void dropItemInInventory(uint16
id);
218 CSTimeInterfaceState getState() {
return _state; }
219 void setState(CSTimeInterfaceState state) { _state = state; }
229 const Common::String &getCurrBubbleText() {
return _currentBubbleText; }
244 bool _mouseWasInScene;
245 CSTimeInterfaceState _state;
270 uint16 _cursorShapes[3];
271 uint32 _cursorNextTime;
Definition: cstime_ui.h:34
Definition: cstime_ui.h:30
Definition: cstime_ui.h:173
Definition: cstime_ui.h:143
Definition: cstime_ui.h:68
Definition: cstime_ui.h:125
Definition: cstime_ui.h:82