move item theming from ScreenOptionsMaster to OptionRow so MiniMenu and other options screens can be themed

This commit is contained in:
Chris Danford
2005-03-20 20:16:32 +00:00
parent 5befb60456
commit b73448d410
7 changed files with 28 additions and 61 deletions
+2 -2
View File
@@ -11,6 +11,7 @@
#include "ThemeManager.h"
#include "Foreach.h"
#include "Style.h"
#include "CommonMetrics.h"
#define ONE( arr ) { for( unsigned Z = 0; Z < ARRAYSIZE(arr); ++Z ) arr[Z]=1.0f; }
@@ -590,8 +591,7 @@ CString PlayerOptions::ThemeMod( CString sOneMod )
/* Theme the mod name (the last string). Allow this to not exist, since
* characters might use modifiers that don't exist in the theme. */
if( THEME->HasMetric( "OptionNames", asTokens.back() ) )
asTokens.back() = THEME->GetMetric( "OptionNames", asTokens.back() );
asTokens.back() = THEME_OPTION_ITEM( asTokens.back(), true );
return join( " ", asTokens );
}