23 #ifndef BAGEL_BAGLIB_MASTER_WIN_H 24 #define BAGEL_BAGLIB_MASTER_WIN_H 26 #include "bagel/boflib/gfx/text.h" 27 #include "bagel/baglib/cursor.h" 28 #include "bagel/boflib/string.h" 29 #include "bagel/baglib/bagel.h" 30 #include "bagel/boflib/gui/window.h" 31 #include "bagel/boflib/sound.h" 32 #include "bagel/baglib/object.h" 33 #include "bagel/baglib/save_game_file.h" 34 #include "bagel/baglib/var.h" 38 #define g_SDevManager CBagel::getBagApp()->getMasterWnd()->getStorageDevManager() 39 #define g_VarManager CBagel::getBagApp()->getMasterWnd()->getVariableManager() 41 class CBagStorageDevManager;
42 class CBagStorageDevWnd;
45 enum SpaceBarEventType {
46 WM_ENTER_PAN_WINDOW = 1001,
47 WM_ENTER_CLOSE_UP_WINDOW = 1002,
48 WM_EXIT_CLOSE_UP_WINDOW = 1003,
49 WM_ENTER_NEW_WLD = 1004,
51 WM_SHOW_SYSTEM_DLG = 1006
54 #define MAX_CURSORS 60 57 void setCICStatus(CBagStorageDev *sdev);
68 static bool _objSaveFl;
69 static StObj *_objList;
85 static int _curCursor;
88 static int _menuCount;
92 virtual ErrorCode Run();
94 ErrorCode close()
override;
100 static void setActiveCursor(
int cursorId);
101 static int getActiveCursor() {
106 static bool getFlyThru();
108 static bool getPanimations();
109 static void setPanimations(
bool panimsFl);
111 static int getCorrection();
112 static void setCorrection(
int correction);
114 static int getPanSpeed();
115 static void setPanSpeed(
int speed);
117 static int getMidiVolume();
118 static void setMidiVolume(
int vol);
120 static int getWaveVolume();
121 static void setWaveVolume(
int vol);
123 static bool getMidi() {
124 return getMidiVolume() != 0;
126 static bool getDigitalAudio() {
127 return getWaveVolume() != 0;
130 static void muteToggle();
131 static void forcePaintScreen();
133 virtual ErrorCode showSystemDialog(
bool saveFl =
true);
134 bool showRestartDialog(
CBofWindow *win =
nullptr,
bool saveFl =
true);
135 bool showSaveDialog(
CBofWindow *win,
bool saveFl =
true);
136 bool showRestoreDialog(
CBofWindow *win,
bool saveFl =
true);
137 bool showQuitDialog(
CBofWindow *win,
bool saveFl =
true);
138 ErrorCode showCreditsDialog(
CBofWindow *win,
bool saveFl =
true);
145 ErrorCode loadFile(
const CBofString &wldName,
const CBofString &startWldName,
bool restartFl =
false,
bool setStartFl =
true);
148 ErrorCode loadGlobalVars(
const CBofString &wldName);
150 ErrorCode setCurrfadeIn(
int fade) {
154 ErrorCode setStorageDev(
const CBofString &wldName,
bool entry =
true);
155 ErrorCode gotoNewWindow(
const CBofString *str);
157 uint16 getDiskID()
const {
160 void setDiskID(uint16
id) {
171 return _storageDeviceList;
174 return _variableList;
183 virtual ErrorCode onHelp(
const CBofString &helpFile,
bool saveBkgFl =
true,
CBofWindow *parent =
nullptr);
185 void onUserMessage(uint32 message, uint32 param)
override;
187 void onKeyHit(uint32 keyCode, uint32 repCount)
override;
188 void onClose()
override;
190 StObj *getObjList() {
193 void setSaveObjs(
bool saveFl) {
200 void saveSDevStack();
206 ErrorCode waitForInput();
208 extern bool g_waitOKFl;
Definition: storage_dev_win.h:406
Definition: master_win.h:66
Definition: ifstream.h:31
Definition: parse_object.h:45
Definition: save_game_file.h:103
Definition: storage_dev_win.h:78
Definition: save_game_file.h:76
Definition: storage_dev_win.h:543