fix options icon names

This commit is contained in:
Chris Danford
2005-01-29 22:47:37 +00:00
parent 7522bcff24
commit b3e9d3aed0
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -40,6 +40,7 @@
void ScreenOptionsMaster::SetList( OptionRowData &row, OptionRowHandler &hand, CString ListName )
{
hand.type = ROW_LIST;
hand.m_bUseModNameForIcon = true;
row.name = ListName;
if( !ListName.CompareNoCase("noteskins") )
@@ -716,7 +717,9 @@ void ScreenOptionsMaster::RefreshIcons()
switch( handler.type )
{
case ROW_LIST:
sIcon = data.choices[iFirstSelection];
sIcon = handler.m_bUseModNameForIcon ?
handler.ListEntries[iFirstSelection].m_sModifiers :
data.choices[iFirstSelection];
break;
case ROW_CONFIG:
break;
+2 -1
View File
@@ -23,13 +23,14 @@ private:
struct OptionRowHandler
{
OptionRowHandler() { opt = NULL; }
OptionRowHandler() { opt = NULL; m_bUseModNameForIcon = false; }
OptionRowType type;
/* ROW_LIST: */
vector<GameCommand> ListEntries;
GameCommand Default;
bool m_bUseModNameForIcon;
/* ROW_CONFIG: */
const ConfOption *opt;