[Scummvm-cvs-logs] SF.net SVN: scummvm:[55117] scummvm/trunk/engines/hugo/menu.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Tue Jan 4 15:18:44 CET 2011
Revision: 55117
http://scummvm.svn.sourceforge.net/scummvm/?rev=55117&view=rev
Author: strangerke
Date: 2011-01-04 14:18:43 +0000 (Tue, 04 Jan 2011)
Log Message:
-----------
HUGO: Use several 'off' buttons in the menu
Modified Paths:
--------------
scummvm/trunk/engines/hugo/menu.cpp
Modified: scummvm/trunk/engines/hugo/menu.cpp
===================================================================
--- scummvm/trunk/engines/hugo/menu.cpp 2011-01-04 12:29:23 UTC (rev 55116)
+++ scummvm/trunk/engines/hugo/menu.cpp 2011-01-04 14:18:43 UTC (rev 55117)
@@ -121,14 +121,14 @@
_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]);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list