21 #ifndef PELROCK_MENU_H 22 #define PELROCK_MENU_H 29 class PelrockEventManager;
30 class ResourceManager;
35 INVENTORY_PREV_BUTTON,
36 INVENTORY_NEXT_BUTTON,
46 enum SoundMenuButton {
56 static const int kCreditsOrder[34] = {
107 void saveScreenshot();
109 void drawInventoryIcons();
111 byte _mainMenuPalette[768] = {0};
114 void checkMouseDown(
int x,
int y);
115 bool checkMouseClick(
int x,
int y);
116 void checkSoundMenuClick(
int x,
int y);
117 bool checkMainMenuMouse(
int x,
int y);
119 bool selectInventoryItem(
int i);
120 void loadMenuTexts();
123 void drawConfirmation();
125 void drawMainButtons();
126 void drawSoundControls();
127 void readButton(byte *rawData, uint32 offset, byte *outBuffer[2],
int w,
int h);
129 void refreshSaveDescriptions();
130 void handleSaveMenuKey(Common::KeyCode key, uint16 ascii);
131 void backToMainMenu();
132 SoundMenuButton isSoundMenuButtonUnder(
int x,
int y);
133 MainMenuButton isMainMenuButtonUnder(
int x,
int y);
142 byte *_saveButtons[2] = {
nullptr};
145 byte *_loadButtons[2] = {
nullptr};
148 byte *_soundsButtons[2] = {
nullptr};
151 byte *_exitToDosButtons[2] = {
nullptr};
154 byte *_inventoryLeftArrow[2] = {
nullptr};
157 byte *_inventoryRightArrow[2] = {
nullptr};
160 byte *_savesUpArrows[2] = {
nullptr};
163 byte *_savesDownArrows[2] = {
nullptr};
166 byte *_questionMark[2] = {
nullptr};
177 byte *_soundControlArrowLeft[2] = {
nullptr};
178 byte *_soundControlArrowRight[2] = {
nullptr};
180 byte *_soundControlMasterIcon =
nullptr;
181 byte *_soundControlSfxIcon =
nullptr;
182 byte *_soundControlMusicIcon =
nullptr;
188 int _masterVolumeLevel = 14;
189 int _sfxVolumeLevel = 14;
190 int _musicVolumeLevel = 14;
194 int _selectedInvIndex = 0;
195 uint _curInventoryPage = 0;
200 bool showButtons =
true;
201 MenuState _menuState = MAIN_MENU;
205 int _saveGamePage = 0;
206 int _editingSaveSlot = -1;
214 #endif // PELROCK_MENU_H Definition: managed_surface.h:51
Definition: atari-screen.h:58
Definition: formatinfo.h:28
Definition: resources.h:30