diff options
author | athrxx | 2011-06-13 17:38:28 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-12-26 16:18:11 +0100 |
commit | adbf14c3c480890dfb155b896d1805e102311aa9 (patch) | |
tree | 44adbe69122f02d4315a099514500785a14ada82 /engines/kyra/gui_eob.cpp | |
parent | 9a6be57afd843b0cae09633b3745b104034100fa (diff) | |
download | scummvm-rg350-adbf14c3c480890dfb155b896d1805e102311aa9.tar.gz scummvm-rg350-adbf14c3c480890dfb155b896d1805e102311aa9.tar.bz2 scummvm-rg350-adbf14c3c480890dfb155b896d1805e102311aa9.zip |
KYRA: (EOB) - update static resources (menu strings)
Diffstat (limited to 'engines/kyra/gui_eob.cpp')
-rw-r--r-- | engines/kyra/gui_eob.cpp | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/engines/kyra/gui_eob.cpp b/engines/kyra/gui_eob.cpp index 34ab19034d..02af458d65 100644 --- a/engines/kyra/gui_eob.cpp +++ b/engines/kyra/gui_eob.cpp @@ -834,6 +834,29 @@ int EobCoreEngine::clickedCharPortraitDefault(Button *button) { } int EobCoreEngine::clickedCamp(Button *button) { + gui_updateControls(); + disableSysTimer(2); + int cd = _screen->curDimIndex(); + + for (int i = 0; i < 6; i++) { + if (!testCharacter(i, 1)) + continue; + _characters[i].damageTaken = 0; + _characters[i].slotStatus[0] = _characters[i].slotStatus[1] = 0; + gui_drawCharPortraitWithStats(i); + } + + _screen->copyRegion(0, 120, 0, 0, 176, 24, 0, 14, Screen::CR_NO_P_CHECK); + Screen::FontId of = _screen->setFont(Screen::FID_8_FNT); + + + _screen->setFont(of); + _screen->setCurPage(0); + _screen->setScreenDim(cd); + + enableSysTimer(2); + updateCharacterEvents(true); + return button->arg; } @@ -1317,13 +1340,14 @@ void EobCoreEngine::gui_processWeaponSlotClickRight(int charIndex, int slotIndex case 7: // Food ration - /* don't do anything if mouse control is enabled */ - //eatItemInHand(charIndex); + // Don't do anything if mouse control is enabled (we don't support anything else) + // eatItemInHand(charIndex); break; case 10: if (_flags.gameID == GI_EOB1) vl += _clericSpellOffset; + // drop through case 9: // Mage/Cleric Scroll if (!_currentControlMode) |