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 ) void ScreenOptionsMaster::SetList( OptionRowData &row, OptionRowHandler &hand, CString ListName )
{ {
hand.type = ROW_LIST; hand.type = ROW_LIST;
hand.m_bUseModNameForIcon = true;
row.name = ListName; row.name = ListName;
if( !ListName.CompareNoCase("noteskins") ) if( !ListName.CompareNoCase("noteskins") )
@@ -716,7 +717,9 @@ void ScreenOptionsMaster::RefreshIcons()
switch( handler.type ) switch( handler.type )
{ {
case ROW_LIST: case ROW_LIST:
sIcon = data.choices[iFirstSelection]; sIcon = handler.m_bUseModNameForIcon ?
handler.ListEntries[iFirstSelection].m_sModifiers :
data.choices[iFirstSelection];
break; break;
case ROW_CONFIG: case ROW_CONFIG:
break; break;
+2 -1
View File
@@ -23,13 +23,14 @@ private:
struct OptionRowHandler struct OptionRowHandler
{ {
OptionRowHandler() { opt = NULL; } OptionRowHandler() { opt = NULL; m_bUseModNameForIcon = false; }
OptionRowType type; OptionRowType type;
/* ROW_LIST: */ /* ROW_LIST: */
vector<GameCommand> ListEntries; vector<GameCommand> ListEntries;
GameCommand Default; GameCommand Default;
bool m_bUseModNameForIcon;
/* ROW_CONFIG: */ /* ROW_CONFIG: */
const ConfOption *opt; const ConfOption *opt;