[Scummvm-cvs-logs] SF.net SVN: scummvm:[55710] scummvm/trunk/engines/hugo/menu.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Tue Feb 1 21:45:22 CET 2011
Revision: 55710
http://scummvm.svn.sourceforge.net/scummvm/?rev=55710&view=rev
Author: strangerke
Date: 2011-02-01 20:45:22 +0000 (Tue, 01 Feb 2011)
Log Message:
-----------
HUGO: in the menu, show modified button before closing the menu, with a short delay.
Thanks _sev for the help!
Modified Paths:
--------------
scummvm/trunk/engines/hugo/menu.cpp
Modified: scummvm/trunk/engines/hugo/menu.cpp
===================================================================
--- scummvm/trunk/engines/hugo/menu.cpp 2011-02-01 18:09:01 UTC (rev 55709)
+++ scummvm/trunk/engines/hugo/menu.cpp 2011-02-01 20:45:22 UTC (rev 55710)
@@ -23,14 +23,16 @@
*
*/
+#include "common/substream.h"
+#include "graphics/imagedec.h"
+#include "gui/gui-manager.h"
+
#include "hugo/hugo.h"
#include "hugo/display.h"
#include "hugo/parser.h"
#include "hugo/schedule.h"
#include "hugo/sound.h"
#include "hugo/util.h"
-#include "graphics/imagedec.h"
-#include "common/substream.h"
namespace Hugo {
@@ -188,12 +190,22 @@
_vm->_file->instructions();
break;
case kCmdMusic:
+ _vm->_sound->toggleMusic();
+ _musicButton->setGfx(arrayBmp[4 * kMenuMusic + (g_system->getOverlayWidth() > 320 ? 2 : 1) - 1 + ((_vm->_config.musicFl) ? 0 : 2)]);
+ _musicButton->draw();
+ g_gui.theme()->updateScreen();
+ g_system->updateScreen();
+ g_system->delayMillis(500);
close();
- _vm->_sound->toggleMusic();
break;
case kCmdSoundFX:
+ _vm->_sound->toggleSound();
+ reflowLayout();
+ _soundFXButton->draw();
+ g_gui.theme()->updateScreen();
+ g_system->updateScreen();
+ g_system->delayMillis(500);
close();
- _vm->_sound->toggleSound();
break;
case kCmdLoad:
close();
@@ -215,8 +227,13 @@
_vm->getGameStatus().recallFl = true;
break;
case kCmdTurbo:
+ _vm->_parser->switchTurbo();
+ reflowLayout();
+ _turboButton->draw();
+ g_gui.theme()->updateScreen();
+ g_system->updateScreen();
+ g_system->delayMillis(500);
close();
- _vm->_parser->switchTurbo();
break;
case kCmdLook:
close();
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