move installer strings to an unselectable theme for easier exporting via tools.exe

This commit is contained in:
Chris Danford
2006-06-14 07:42:40 +00:00
parent 288d9c70e5
commit daf48e67bc
9 changed files with 61 additions and 174 deletions
+9 -4
View File
@@ -190,7 +190,9 @@ static void Language( int &sel, bool ToSel, const ConfOption *pConfOption )
static void ThemeChoices( vector<RString> &out )
{
THEME->GetThemeNames( out );
THEME->GetSelectableThemeNames( out );
FOREACH( RString, out, s )
*s = THEME->GetThemeDisplayName( *s );
}
static void DisplayResolutionChoices( vector<RString> &out )
@@ -210,14 +212,17 @@ static void Theme( int &sel, bool ToSel, const ConfOption *pConfOption )
vector<RString> choices;
pConfOption->MakeOptionsList( choices );
vector<RString> vsThemeNames;
THEME->GetSelectableThemeNames( vsThemeNames );
if( ToSel )
{
sel = 0;
for( unsigned i=1; i<choices.size(); i++ )
if( !stricmp(choices[i], THEME->GetCurThemeName()) )
for( unsigned i=1; i<vsThemeNames.size(); i++ )
if( !stricmp(vsThemeNames[i], THEME->GetCurThemeName()) )
sel = i;
} else {
const RString sNewTheme = choices[sel];
const RString sNewTheme = vsThemeNames[sel];
if( THEME->GetCurThemeName() != sNewTheme )
THEME->SwitchThemeAndLanguage( sNewTheme, THEME->GetCurLanguage(), PREFSMAN->m_bPseudoLocalize );
}