diff options
author | Oystein Eftevaag | 2006-01-22 09:34:12 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2006-01-22 09:34:12 +0000 |
commit | e14b7fe8ac25ab743f1db0d2cb47362f089b528a (patch) | |
tree | a18fd0ee0c6fe931a87ac3ca7c46d3c09a6a11e6 /kyra/staticres.cpp | |
parent | d4d95adab8bed63f03eb365b61ed9fc24ebf103d (diff) | |
download | scummvm-rg350-e14b7fe8ac25ab743f1db0d2cb47362f089b528a.tar.gz scummvm-rg350-e14b7fe8ac25ab743f1db0d2cb47362f089b528a.tar.bz2 scummvm-rg350-e14b7fe8ac25ab743f1db0d2cb47362f089b528a.zip |
Kyrandia:
* Partial GUI implementation
-Loading games and quitting works.
-Colors are wrong in most room; saving and configuration doesn't work.
* Moved stuff around in kyra.h, so struct definitions are adjacent.
* Slight modification of Joostp's mousefix, should be more efficient and still work
svn-id: r20135
Diffstat (limited to 'kyra/staticres.cpp')
-rw-r--r-- | kyra/staticres.cpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/kyra/staticres.cpp b/kyra/staticres.cpp index dbe1636e62..91a78aa633 100644 --- a/kyra/staticres.cpp +++ b/kyra/staticres.cpp @@ -748,6 +748,67 @@ Button *KyraEngine::_buttonDataListPtr[] = { 0 }; +Button KyraEngine::_scrollUpButton = {0, 0x12, 1, 1, 1, 0x483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x18, 0x0f, 0, 0}; +Button KyraEngine::_scrollDownButton = {0, 0x13, 1, 1, 1, 0x483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x18, 0x0f, 0, 0}; + + + +Button KyraEngine::_menuButtonData[] = { + { 0, 0x0c, /*XXX,*/1, 1, 1, /*XXX,*/ 0x487, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*XXX,*/ 0, 0 /*, XXX*/ }, + { 0, 0x0d, /*XXX,*/1, 1, 1, /*XXX,*/ 0x487, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*XXX,*/ 0, 0 /*, XXX*/ }, + { 0, 0x0e, /*XXX,*/1, 1, 1, /*XXX,*/ 0x487, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*XXX,*/ 0, 0 /*, XXX*/ }, + { 0, 0x0f, /*XXX,*/1, 1, 1, /*XXX,*/ 0x487, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*XXX,*/ 0, 0 /*, XXX*/ }, + { 0, 0x10, /*XXX,*/1, 1, 1, /*XXX,*/ 0x487, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*XXX,*/ 0, 0 /*, XXX*/ }, + { 0, 0x11, /*XXX,*/1, 1, 1, /*XXX,*/ 0x487, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /*XXX,*/ 0, 0 /*, XXX*/ } +}; + +Menu KyraEngine::_menu[] = { + { -1, -1, 208, 136, 248, 249, 250, "The Legend of Kyrandia", 251, -1, 8, 0, 5, -1, -1, -1, -1, + { + {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}, + {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, 255, 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} + } + }, + { -1, -1, 288, 56, 248, 249, 250, 0, 254,-1, 8, 0, 2, -1, -1, -1, -1, + { + {1, 0, 0, "Yes", 24, 0, 30, 72, 15, 252, 253, 255, 255, + 248, 249, 250, &KyraEngine::gui_quitConfirmYes, -1, 0, 0, 0, 0, 0}, + {1, 0, 0, "No", 192, 0, 30, 72, 15, 252, 253, 255, 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} + } + }, + { -1, -1, 288, 160, 248, 249, 250, "Which game would you like to reload?", 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} + {1, 0, 0, "Cancel", 184, 0, 134, 88, 15, 252, 253, 255, 255, + 248, 249, 250, &KyraEngine::gui_cancelLoadGameMenu, -1, 0, 0, 0, 0, 0}, + } + } +}; + const uint8 KyraEngine::_magicMouseItemStartFrame[] = { 0xAD, 0xB7, 0xBE, 0x00 }; |