diff options
author | Oystein Eftevaag | 2006-01-27 08:23:53 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2006-01-27 08:23:53 +0000 |
commit | decbf21a520c842e5259593414d10c4fcf1765b6 (patch) | |
tree | 3f93e2f828304f1eeadf4ed032dab1f3eef27a87 /kyra/staticres.cpp | |
parent | f0e6965c77b50816bf9d37695983f8ee532f925d (diff) | |
download | scummvm-rg350-decbf21a520c842e5259593414d10c4fcf1765b6.tar.gz scummvm-rg350-decbf21a520c842e5259593414d10c4fcf1765b6.tar.bz2 scummvm-rg350-decbf21a520c842e5259593414d10c4fcf1765b6.zip |
Implemented the GUI menu for saving games (minus the cursor in the text entry window...).
The Load Game menu will now pop up before the last part of the intro is played,
if it has already played once before (as in the original).
Note that the palette is still wrong, and the settings menu is still not implemented.
svn-id: r20210
Diffstat (limited to 'kyra/staticres.cpp')
-rw-r--r-- | kyra/staticres.cpp | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/kyra/staticres.cpp b/kyra/staticres.cpp index 6a44a0b83a..ebf9edb4c3 100644 --- a/kyra/staticres.cpp +++ b/kyra/staticres.cpp @@ -768,14 +768,13 @@ Menu KyraEngine::_menu[] = { {1, 0, 0, "Load a Game", -1, -1, 30, 148, 15, 252, 253, 24, 0, 248, 249, 250, &KyraEngine::gui_loadGameMenu, -1, 0, 0, 0, 0, 0}, {1, 0, 0, "Save this Game", -1, -1, 47, 148, 15, 252, 253, 24, 0, - 248, 249, 250, /*&menu_saveGame*/ 0, -1, 0, 0, 0, 0, 0}, + 248, 249, 250, &KyraEngine::gui_saveGameMenu, -1, 0, 0, 0, 0, 0}, {1, 0, 0, "Game Controls", -1, -1, 64, 148, 15, 252, 253, 24, 0, 248, 249, 250, /*&menu_gameControls*/ 0, -1, 0, 0, 0, 0, 0}, {1, 0, 0, "Quit playing", -1, -1, 81, 148, 15, 252, 253, 24, 0, 248, 249, 250, &KyraEngine::gui_quitPlaying, -1, 0, 0, 0, 0, 0}, {1, 0, 0, "Resume game", 86, 0, 110, 92, 15, 252, 253, -1, 255, - 248, 249, 250, &KyraEngine::gui_resumeGame, -1, 0, 0, 0, 0, 0}, - {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} + 248, 249, 250, &KyraEngine::gui_resumeGame, -1, 0, 0, 0, 0, 0} } }, { -1, -1, 288, 56, 248, 249, 250, 0, 254,-1, 8, 0, 2, -1, -1, -1, -1, @@ -783,28 +782,33 @@ Menu KyraEngine::_menu[] = { {1, 0, 0, "Yes", 24, 0, 30, 72, 15, 252, 253, -1, 255, 248, 249, 250, &KyraEngine::gui_quitConfirmYes, -1, 0, 0, 0, 0, 0}, {1, 0, 0, "No", 192, 0, 30, 72, 15, 252, 253, -1, 255, - 248, 249, 250, &KyraEngine::gui_quitConfirmNo, -1, 0, 0, 0, 0, 0}, - {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, - {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, - {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, - {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} + 248, 249, 250, &KyraEngine::gui_quitConfirmNo, -1, 0, 0, 0, 0, 0} } }, - { -1, -1, 288, 160, 248, 249, 250, "Which game would you like to reload?", 251, -1, 8, 0, 6, 132, 22, 132, 124, + { -1, -1, 288, 160, 248, 249, 250, 0, 251, -1, 8, 0, 6, 132, 22, 132, 124, { {1, 0, 0, 0, -1, 255, 39, 256, 15, 252, 253, 5, 0, - 248, 249, 250, &KyraEngine::gui_loadGame, -1, 0, 0, 0, 0, 0}, - {1, 0, 0, "", -1, 255, 56, 256, 15, 252, 253, 5, 0, - 248, 249, 250, &KyraEngine::gui_loadGame, -1, 0, 0, 0, 0, 0}, - {1, 0, 0, "", -1, 255, 73, 256, 15, 252, 253, 5, 0, - 248, 249, 250, &KyraEngine::gui_loadGame, -1, 0, 0, 0, 0, 0}, - {1, 0, 0, "", -1, 255, 90, 256, 15, 252, 253, 5, 0, - 248, 249, 250, &KyraEngine::gui_loadGame, -1, 0, 0, 0, 0, 0}, - {1, 0, 0, "", -1, 255, 107, 256, 15, 252, 253, 5, 0, - 248, 249, 250, &KyraEngine::gui_loadGame, -1, 0, 0, 0, 0, 0}, - //{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} + 248, 249, 250, 0, -1, 0, 0, 0, 0, 0}, + {1, 0, 0, 0, -1, 255, 56, 256, 15, 252, 253, 5, 0, + 248, 249, 250, 0, -1, 0, 0, 0, 0, 0}, + {1, 0, 0, 0, -1, 255, 73, 256, 15, 252, 253, 5, 0, + 248, 249, 250, 0, -1, 0, 0, 0, 0, 0}, + {1, 0, 0, 0, -1, 255, 90, 256, 15, 252, 253, 5, 0, + 248, 249, 250, 0, -1, 0, 0, 0, 0, 0}, + {1, 0, 0, 0, -1, 255, 107, 256, 15, 252, 253, 5, 0, + 248, 249, 250, 0, -1, 0, 0, 0, 0, 0}, {1, 0, 0, "Cancel", 184, 0, 134, 88, 15, 252, 253, -1, 255, - 248, 249, 250, &KyraEngine::gui_cancelLoadGameMenu, -1, 0, 0, 0, 0, 0}, + 248, 249, 250, &KyraEngine::gui_cancelSubMenu, -1, 0, 0, 0, 0, 0}, + } + }, + { -1, -1, 288, 67, 248, 249, 250, "Enter a description of your saved game:", 251, -1, 8, 0, 3, -1, -1, -1, -1, + { + {1, 0, 0, "Save", 24, 0, 44, 72, 15, 252, 253, -1, 255, + 248, 249, 250, &KyraEngine::gui_savegameConfirm, -1, 0, 0, 0, 0, 0}, + // {1, 0, 0, "Cancel", 110, 0, 44, 72, 15, 252, 253, -1, 255, + // 248, 249, 250, /*&menu_cancelconfirmsave*/ 0, -1, 0, 0, 0, 0, 0}, + {1, 0, 0, "Cancel", 192, 0, 44, 72, 15, 252, 253, -1, 255, + 248, 249, 250, &KyraEngine::gui_cancelSubMenu, -1, 0, 0, 0, 0, 0} } } }; |