From 2477c733dae07de28eb172826b6b69408c49f0c1 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Tue, 4 Jan 2011 14:18:43 +0000 Subject: HUGO: Use several 'off' buttons in the menu svn-id: r55117 --- engines/hugo/menu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/hugo/menu.cpp b/engines/hugo/menu.cpp index 26e0e0cbdb..31d874995a 100644 --- a/engines/hugo/menu.cpp +++ b/engines/hugo/menu.cpp @@ -121,14 +121,14 @@ void TopMenu::reflowLayout() { _inventButton->resize(x * scale, y * scale, kButtonWidth * scale, kButtonHeight * scale); x += kButtonWidth + kButtonPad; - // Set the graphics to the 'on' buttons + // Set the graphics to the 'on' buttons, except for the variable ones _whatButton->setGfx(arrayBmp[4 * kMenuWhat + scale - 1]); - _musicButton->setGfx(arrayBmp[4 * kMenuMusic + scale - 1]); - _soundFXButton->setGfx(arrayBmp[4 * kMenuSoundFX + scale - 1]); + _musicButton->setGfx(arrayBmp[4 * kMenuMusic + scale - 1 + ((_config.musicFl) ? 0 : 2)]); + _soundFXButton->setGfx(arrayBmp[4 * kMenuSoundFX + scale - 1 + ((_config.soundFl) ? 0 : 2)]); _loadButton->setGfx(arrayBmp[4 * kMenuLoad + scale - 1]); _saveButton->setGfx(arrayBmp[4 * kMenuSave + scale - 1]); _recallButton->setGfx(arrayBmp[4 * kMenuRecall + scale - 1]); - _turboButton->setGfx(arrayBmp[4 * kMenuTurbo + scale - 1]); + _turboButton->setGfx(arrayBmp[4 * kMenuTurbo + scale - 1 + ((_config.turboFl) ? 0 : 2)]); _lookButton->setGfx(arrayBmp[4 * kMenuLook + scale - 1]); _inventButton->setGfx(arrayBmp[4 * kMenuInventory + scale - 1]); } -- cgit v1.2.3