diff options
author | Johannes Schickel | 2006-09-17 20:21:40 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-09-17 20:21:40 +0000 |
commit | b6a8e38726b55dec5a959ec914c6f9e6fda358d8 (patch) | |
tree | 72c3c981e7171789a71aa752485cd45149263e3d /engines/kyra/gui.cpp | |
parent | 3e8380f2c6889c85e0e962631eaf9814c2f84963 (diff) | |
download | scummvm-rg350-b6a8e38726b55dec5a959ec914c6f9e6fda358d8.tar.gz scummvm-rg350-b6a8e38726b55dec5a959ec914c6f9e6fda358d8.tar.bz2 scummvm-rg350-b6a8e38726b55dec5a959ec914c6f9e6fda358d8.zip |
- removes the kyra specific language flag system, and uses the language enum defined in Common for that now
- also reworks the game flag system in general
svn-id: r23920
Diffstat (limited to 'engines/kyra/gui.cpp')
-rw-r--r-- | engines/kyra/gui.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp index 9fb2fd3a02..f8827c8399 100644 --- a/engines/kyra/gui.cpp +++ b/engines/kyra/gui.cpp @@ -508,16 +508,16 @@ void KyraEngine::setGUILabels() { int walkspeedGarbageOffset = 36; int menuLabelGarbageOffset = 0; - if (_features & GF_TALKIE) { - if (_features & GF_ENGLISH) { + if (_flags.isTalkie) { + if (_flags.lang == Common::EN_ANY) { offset = 52; - } else if (_features & GF_GERMAN) { + } else if (_flags.lang == Common::DE_DEU) { offset = 30; - } else if (_features & GF_FRENCH) { + } else if (_flags.lang == Common::FR_FRA) { offset = 6; } walkspeedGarbageOffset = 48; - } else if (_features & GF_SPANISH) { + } else if (_flags.lang == Common::ES_ESP) { offset = -4; menuLabelGarbageOffset = 72; } @@ -572,7 +572,7 @@ void KyraEngine::setGUILabels() { // Main Menu _menu[5].item[5].itemString = &_guiStrings[19 + offset][menuLabelGarbageOffset]; - if (_features & GF_TALKIE) { + if (_flags.isTalkie) { // Text & Voice _voiceTextString = _guiStrings[28 + offset]; } @@ -1179,7 +1179,7 @@ int KyraEngine::gui_gameControlsMenu(Button *button) { _screen->loadPageFromDisk("SEENPAGE.TMP", 0); _screen->savePageToDisk("SEENPAGE.TMP", 0); - if (_features & GF_TALKIE) { + if (_flags.isTalkie) { //_menu[5].width = 230; for (int i = 0; i < 5; i++) { @@ -1260,7 +1260,7 @@ void KyraEngine::gui_setupControls(Menu &menu) { int textControl = 3; int clickableOffset = 8; - if (_features & GF_TALKIE) { + if (_flags.isTalkie) { textControl = 4; clickableOffset = 11; @@ -1592,7 +1592,7 @@ void KyraEngine::gui_drawMainBox(int x, int y, int w, int h, int fill) { static const uint8 kyra2ColorTable[] = { 0x0, 0x19, 0x28, 0xc8 }; const uint8 *colorTable; - if (_game == GI_KYRA3) + if (_flags.gameID == GI_KYRA3) colorTable = kyra3ColorTable; else colorTable = kyra2ColorTable; |