fix options icon names
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user