[Scummvm-cvs-logs] SF.net SVN: scummvm: [22676] scummvm/trunk/engines/kyra
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sat May 27 05:00:06 CEST 2006
Revision: 22676
Author: eriktorbjorn
Date: 2006-05-27 04:59:40 -0700 (Sat, 27 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22676&view=rev
Log Message:
-----------
Draw the selected menu item (currently always the first one) highlighted, i.e.
white instead of yellow.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/kyra.h
scummvm/trunk/engines/kyra/kyra3.cpp
Modified: scummvm/trunk/engines/kyra/kyra.h
===================================================================
--- scummvm/trunk/engines/kyra/kyra.h 2006-05-27 11:55:03 UTC (rev 22675)
+++ scummvm/trunk/engines/kyra/kyra.h 2006-05-27 11:59:40 UTC (rev 22676)
@@ -1042,6 +1042,7 @@
int _musicSoundChannel;
const char *_menuAudioFile;
+ int _selectedMenuItem;
// gui/menu specific
private:
Modified: scummvm/trunk/engines/kyra/kyra3.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra3.cpp 2006-05-27 11:55:03 UTC (rev 22675)
+++ scummvm/trunk/engines/kyra/kyra3.cpp 2006-05-27 11:59:40 UTC (rev 22676)
@@ -35,6 +35,7 @@
_soundDigital = 0;
_musicSoundChannel = -1;
_menuAudioFile = "TITLE1.AUD";
+ _selectedMenuItem = 0;
}
KyraEngine_v3::~KyraEngine_v3() {
@@ -271,7 +272,8 @@
for (int i = 0; i < menuTable[3]; ++i) {
int curY = top + i * _screen->getFontHeight();
- gui_printString(strings[i], ((_screen->_curDim->w >> 1) + _screen->_curDim->sx) << 3, curY, menuTable[5], 0, 5);
+ int color = (i == _selectedMenuItem) ? menuTable[6] : menuTable[5];
+ gui_printString(strings[i], ((_screen->_curDim->w >> 1) + _screen->_curDim->sx) << 3, curY, color, 0, 5);
}
}
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