Move explanation texts to the same section, so items can be moved

around without having to edit all translations.
Don't display text in the song options menu.
Allow translating row titles.
This commit is contained in:
Glenn Maynard
2003-11-08 04:25:33 +00:00
parent f810930dab
commit 0ea0f145b2
3 changed files with 21 additions and 18 deletions
+5 -10
View File
@@ -231,7 +231,6 @@ ScreenOptionsMaster::ScreenOptionsMaster( CString sClassName ):
RageException::Throw( "Parse error in %s::Line%i", m_sName.c_str(), i+1 );
OptionRowHandler hand;
bool TitleSetExplicitly = false;
for( unsigned part = 0; part < asParts.size(); ++part)
{
CStringArray asBits;
@@ -240,12 +239,7 @@ ScreenOptionsMaster::ScreenOptionsMaster( CString sClassName ):
const CString name = asBits[0];
const CString param = asBits.size() > 1? asBits[1]: "";
if( !name.CompareNoCase("title") )
{
TitleSetExplicitly = true;
row.title = param;
}
else if( !name.CompareNoCase("list") )
if( !name.CompareNoCase("list") )
{
SetList( row, hand, param, row.name );
}
@@ -265,9 +259,6 @@ ScreenOptionsMaster::ScreenOptionsMaster( CString sClassName ):
}
else
RageException::Throw( "Unexpected type '%s' in %s::Line%i", name.c_str(), m_sName.c_str(), i );
if( !TitleSetExplicitly )
row.title = row.name;
}
OptionRowHandlers.push_back( hand );
}
@@ -611,6 +602,10 @@ void ScreenOptionsMaster::RefreshIcons()
break;
}
/* XXX: hack to not display text in the song options menu */
if( row.bOneChoiceForAllPlayers )
sIcon = "";
icon.Load( (PlayerNumber)p, sIcon, false );
}
}