add ScreenOptionsProfiles (to soon replace ScreenProfileOptions)

This commit is contained in:
Chris Danford
2005-07-05 11:30:30 +00:00
parent 1cc24c34d7
commit 16fc6e6723
7 changed files with 240 additions and 6 deletions
+9 -3
View File
@@ -47,9 +47,15 @@ void OptionRow::PrepareItemText( CString &s ) const
if( CAPITALIZE_ALL_OPTION_NAMES )
s.MakeUpper();
}
static CString OPTION_TITLE( CString s )
CString OptionRow::OptionTitle( CString s ) const
{
return THEME->GetMetric("OptionTitles",s);
bool bTheme = false;
// HACK: Always theme the NEXT_ROW and EXIT items, even if metrics says not to theme.
if( THEME_TITLES && m_RowDef.m_bAllowThemeTitles ) bTheme = true;
return bTheme ? THEME->GetMetric("OptionTitles",s) : s;
}
CString ITEMS_LONG_ROW_X_NAME( size_t p ) { return ssprintf("ItemsLongRowP%dX",int(p+1)); }
@@ -174,7 +180,7 @@ void OptionRow::LoadNormal( const OptionRowDefinition &def, OptionRowHandler *pH
CString OptionRow::GetRowTitle() const
{
CString sLineName = m_RowDef.name;
CString sTitle = THEME_TITLES ? OPTION_TITLE(sLineName) : sLineName;
CString sTitle = OptionTitle(sLineName);
// HACK: tack the BPM onto the name of the speed line
if( sLineName.CompareNoCase("speed")==0 )