22 #ifndef NEVERHOOD_MENUMODULE_H 23 #define NEVERHOOD_MENUMODULE_H 25 #include "common/str.h" 26 #include "common/str-array.h" 27 #include "neverhood/neverhood.h" 28 #include "neverhood/module.h" 29 #include "neverhood/scene.h" 44 void setLoadgameInfo(uint index);
45 void setLoadgameSlot(
int slot);
46 void setSavegameInfo(
const Common::String &description, uint index,
bool newSavegame);
47 void setDeletegameInfo(uint index);
48 void refreshSaveGameList();
51 byte *_savedPaletteData;
52 SavegameList *_savegameList;
55 void createScene(
int sceneNum,
int which);
58 void createLoadGameMenu();
59 void createSaveGameMenu();
60 void createDeleteGameMenu();
61 void handleLoadGameMenuAction(
bool doLoad);
62 void handleSaveGameMenuAction(
bool doSave,
bool doQuery);
63 void handleDeleteGameMenuAction(
bool doDelete);
64 void loadSavegameList();
81 bool hasMakingOf()
const;
95 uint32 _ticksDuration;
107 int baseObjectPriority,
int baseSurfacePriority);
108 virtual void onClick();
109 virtual void setPosition(int16 x, int16 y);
110 virtual void refreshPosition();
111 virtual void initialize();
112 virtual int16 getWidth();
113 virtual int16 getHeight();
114 virtual void enterWidget();
115 virtual void exitWidget();
118 int _baseObjectPriority;
119 int _baseSurfacePriority;
127 int baseObjectPriority,
int baseSurfacePriority,
129 void initialize()
override;
130 int16 getWidth()
override;
131 int16 getHeight()
override;
132 void drawString(
int maxStringLength);
134 void setString(
const byte *
string,
int stringLen);
149 void onClick()
override;
150 void initialize()
override;
151 void enterWidget()
override;
152 void exitWidget()
override;
153 void setCursor(uint32 cursorFileHash, int16 cursorWidth, int16 cursorHeight);
158 void handleAsciiKey(
char ch);
159 void handleKeyDown(Common::KeyCode keyCode);
161 void setReadOnly(
bool value) { _readOnly = value; }
162 bool isReadOnly()
const {
return _readOnly; }
163 bool isModified()
const {
return _modified; }
167 int _maxVisibleChars;
168 int _maxStringLength;
175 uint32 _cursorFileHash;
176 int16 _cursorWidth, _cursorHeight;
187 void onClick()
override;
188 void initialize()
override;
196 uint getCurrIndex()
const {
return _currIndex; }
200 int _maxStringLength;
202 int _firstVisibleItem;
203 int _lastVisibleItem;
204 SavegameList *_savegameList;
207 int _maxVisibleItemsCount;
213 const uint32 *buttonFileHashes,
const NRect *buttonCollisionBounds,
214 uint32 backgroundFileHash, uint32 fontFileHash,
215 uint32 mouseFileHash,
const NRect *mouseRect,
216 uint32 listBoxBackgroundFileHash, int16 listBoxX, int16 listBoxY,
const NRect &listBoxRect,
217 uint32 textEditBackgroundFileHash, uint32 textEditCursorFileHash, int16 textEditX, int16 textEditY,
const NRect &textEditRect,
218 uint32 textFileHash1, uint32 textFileHash2);
220 virtual void setCurrWidget(
Widget *newWidget);
221 virtual Widget *getCurrWidget() {
return _currWidget; }
222 virtual void refreshDescriptionEdit();
225 SavegameList *_savegameList;
231 virtual void performAction();
239 void performAction()
override;
246 void performAction()
override;
253 void performAction()
override;
Definition: menumodule.h:124
Definition: background.h:30
Definition: menumodule.h:183
Definition: neverhood.h:60
Definition: menumodule.h:86
Definition: graphics.h:42
Definition: menumodule.h:78
Definition: menumodule.h:33
Definition: menumodule.h:144
Definition: graphics.h:85
Definition: graphics.h:32