22 #ifndef AGI_SYSTEMUI_H 23 #define AGI_SYSTEMUI_H 27 #define SYSTEMUI_SAVEDGAME_MAXIMUM_SLOTS 100 28 #define SYSTEMUI_SAVEDGAME_SLOTS_ON_SCREEN 12 29 #define SYSTEMUI_SAVEDGAME_DESCRIPTION_LEN 30 30 #define SYSTEMUI_SAVEDGAME_DISPLAYTEXT_LEN 31 31 #define SYSTEMUI_SAVEDGAME_DISPLAYTEXT_PREFIX_LEN 3 37 char description[SYSTEMUI_SAVEDGAME_DESCRIPTION_LEN + 1];
38 char displayText[SYSTEMUI_SAVEDGAME_DISPLAYTEXT_LEN + 1];
62 const char *getStatusTextScore();
63 const char *getStatusTextSoundOn();
64 const char *getStatusTextSoundOff();
74 const char *getInventoryTextNothing();
75 const char *getInventoryTextYouAreCarrying();
76 const char *getInventoryTextSelectItems();
77 const char *getInventoryTextReturnToGame();
81 int16 figureOutAutomaticSaveGameSlot(
const char *automaticSaveDescription);
82 int16 figureOutAutomaticRestoreGameSlot(
const char *automaticSaveDescription);
84 int16 askForSaveGameSlot();
85 int16 askForRestoreGameSlot();
86 bool askForSaveGameDescription(int16 slotId,
Common::String &newDescription);
88 void savedGameSlot_KeyPress(uint16 newKey);
91 int16 askForSavedGameSlot(
const char *slotListText);
92 bool askForSavedGameVerification(
const char *verifyText,
const char *verifyButton1,
const char *verifyButton2,
const char *actualDescription, int16 slotId);
94 bool askForVerification(
const char *verifyText,
const char *button1Text,
const char *button2Text,
bool continueOnMessageBoxClick);
96 void createSavedGameDisplayText(
char *destDisplayText,
const char *actualDescription, int16 slotId,
bool fillUpWithSpaces);
97 void clearSavedGameSlots();
98 void readSavedGameSlots(
bool filterNonexistant,
bool withAutoSaveSlot);
99 void figureOutAutomaticSavedGameSlot(
const char *automaticSaveDescription, int16 &matchedGameSlotId, int16 &freshGameSlotId);
101 void drawSavedGameSlots();
102 void drawSavedGameSlotSelector(
bool active);
104 SystemUISavedGameArray _savedGameArray;
105 int16 _savedGameUpmostSlotNr;
106 int16 _savedGameSelectedSlotNr;
109 SystemUIButtonArray _buttonArray;
111 Common::Rect createRect(int16 x, int16 adjX, int16 y, int16 adjY, int16 width, int16 adjWidth, int16 height, int16 adjHeight);
115 void drawButtonAppleIIgsEdgePixels(int16 x, int16 adjX, int16 y, int16 adjY, byte *edgeBitmap,
bool mirrored,
bool upsideDown);
120 void askForVerificationKeyPress(uint16 newKey);
123 bool _askForVerificationContinueOnMessageBoxClick;
124 bool _askForVerificationCancelled;
125 int16 _askForVerificationMouseLockedButtonNr;
126 int16 _askForVerificationMouseActiveButtonNr;
129 const char *_textStatusScore;
130 const char *_textStatusSoundOn;
131 const char *_textStatusSoundOff;
133 const char *_textEnterCommand;
135 const char *_textPause;
136 const char *_textPauseButton;
137 const char *_textRestart;
138 const char *_textRestartButton1;
139 const char *_textRestartButton2;
140 const char *_textQuit;
141 const char *_textQuitButton1;
142 const char *_textQuitButton2;
144 const char *_textInventoryNothing;
145 const char *_textInventoryYouAreCarrying;
146 const char *_textInventorySelectItems;
147 const char *_textInventoryReturnToGame;
149 const char *_textSaveGameSelectSlot;
150 const char *_textSaveGameEnterDescription;
151 const char *_textSaveGameVerify;
152 const char *_textSaveGameVerifyButton1;
153 const char *_textSaveGameVerifyButton2;
155 const char *_textRestoreGameNoSlots;
156 const char *_textRestoreGameSelectSlot;
157 const char *_textRestoreGameError;
158 const char *_textRestoreGameVerify;
159 const char *_textRestoreGameVerifyButton1;
160 const char *_textRestoreGameVerifyButton2;
Definition: systemui.h:51
Definition: graphics.h:58
Definition: systemui.h:33
Definition: systemui.h:42