Give screens individual control over whether the style icon is displayed.

This commit is contained in:
Glenn Maynard
2003-09-27 04:28:13 +00:00
parent 3a0e7fc3df
commit f502c210db
2 changed files with 40 additions and 1 deletions
+2 -1
View File
@@ -33,6 +33,7 @@
#define HELP_ON_COMMAND THEME->GetMetric("MenuElements","HelpOnCommand")
#define HELP_OFF_COMMAND THEME->GetMetric("MenuElements","HelpOffCommand")
#define TIMER_SECONDS THEME->GetMetricI(m_sName,"TimerSeconds")
#define STYLE_ICON THEME->GetMetricB(m_sName,"StyleIcon")
MenuElements::MenuElements()
@@ -54,7 +55,7 @@ void MenuElements::Load( CString sClassName, bool bEnableTimer, bool bLoadStyleI
m_sprHeader.Command( HEADER_ON_COMMAND );
this->AddChild( &m_sprHeader );
if( bLoadStyleIcon && GAMESTATE->m_CurStyle != STYLE_INVALID )
if( STYLE_ICON && GAMESTATE->m_CurStyle != STYLE_INVALID )
{
CString sIconFileName = ssprintf("MenuElements icon %s", GAMESTATE->GetCurrentStyleDef()->m_szName );
m_sprStyleIcon.Load( THEME->GetPathToG(sIconFileName) );