22 #ifndef ASYLUM_VIEWS_MENU_H 23 #define ASYLUM_VIEWS_MENU_H 25 #include "graphics/surface.h" 27 #include "asylum/eventhandler.h" 28 #include "asylum/shared.h" 34 class GraphicResource;
64 void setDword455C78(
bool state) { _dword_455C78 = state; }
65 void setDword455C80(
bool state) { _dword_455C80 = state; }
66 void setLoadingDuringStartup() { _loadingDuringStartup =
true; }
68 bool isEditingSavegameName() {
return _activeScreen == kMenuSaveGame && _isEditingSavegameName; };
69 bool isConfiguringKeyboard() {
return _activeScreen == kMenuKeyboardConfig && _selectedShortcutIndex != -1; }
83 kMenuAudioOptions = 7,
85 kMenuKeyboardConfig = 9,
86 kMenuReturnToGame = 10,
91 kMenuResourceNone = 0,
92 kBackground = MAKE_RESOURCE(kResourcePackShared, 0),
93 kEye = MAKE_RESOURCE(kResourcePackShared, 1),
94 kFontBlue = MAKE_RESOURCE(kResourcePackShared, 22),
95 kFontYellow = MAKE_RESOURCE(kResourcePackShared, 16),
96 kSfxSound = MAKE_RESOURCE(kResourcePackShared, 41),
97 kAmbientSound = MAKE_RESOURCE(kResourcePackShared, 42),
98 kVoiceSound = MAKE_RESOURCE(kResourcePackShared, 43)
105 MenuScreen _activeScreen;
106 ResourceId _soundResourceId;
107 ResourceId _musicResourceId;
109 MenuScreen _currentIcon;
110 int32 _selectedShortcutIndex;
116 bool _isEditingSavegameName;
117 bool _testSoundsPlaying;
121 int32 _creditsFrameIndex;
122 int32 _creditsNumSteps;
124 uint32 _iconFrames[12];
127 int32 _movieList[196];
134 bool _loadingDuringStartup;
155 void switchFont(
bool condition);
172 MenuScreen findMousePosition();
177 void playTestSounds();
182 void stopTestSounds();
189 void adjustMasterVolume(int32 delta)
const;
194 void adjustTestVolume();
199 void adjustPerformance();
217 bool hasThumbnail(
int index);
218 void readThumbnail();
219 void showThumbnail();
222 void updateNewGame();
223 void updateLoadGame();
224 void updateSaveGame();
225 void updateDeleteGame();
226 void updateViewMovies();
227 void updateQuitGame();
228 void updateTextOptions();
229 void updateAudioOptions();
230 void updateSettings();
231 void updateKeyboardConfig();
232 void updateReturnToGame();
233 void updateShowCredits();
237 void clickLoadGame();
238 void clickSaveGame();
239 void clickDeleteGame();
240 void clickViewMovies();
241 void clickQuitGame();
242 void clickTextOptions();
243 void clickAudioOptions();
244 void clickSettings();
245 void clickKeyboardConfig();
246 void clickReturnToGame();
247 void clickShowCredits();
252 void keyShowCredits();
258 #endif // ASYLUM_VIEWS_MENU_H
Definition: eventhandler.h:43
Definition: atari-cursor.h:38
Definition: eventhandler.h:61