add PlayerOptionsHideFailType

This commit is contained in:
Chris Danford
2008-04-30 10:57:53 +00:00
parent 0c2a2ad425
commit 774befb052
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -1164,6 +1164,7 @@ StageDisplayStageToShow=SCREENMAN:GetTopScreen():GetStageStats():GetStage()
Summary=false Summary=false
TimerSeconds=15 TimerSeconds=15
PlayerOptionsSeparator="," PlayerOptionsSeparator=","
PlayerOptionsHideFailType=false
MaxComboNumDigits=4 MaxComboNumDigits=4
ShowStyleIcon=true ShowStyleIcon=true
ShowBannerArea=true ShowBannerArea=true
+5 -1
View File
@@ -69,6 +69,7 @@ XToString( DetailLine );
#define SHOW_TIME_AREA THEME->GetMetricB(m_sName,"ShowTimeArea") #define SHOW_TIME_AREA THEME->GetMetricB(m_sName,"ShowTimeArea")
#define SHOW_RECORDS_AREA THEME->GetMetricB(m_sName,"ShowRecordsArea") #define SHOW_RECORDS_AREA THEME->GetMetricB(m_sName,"ShowRecordsArea")
#define MAX_COMBO_NUM_DIGITS THEME->GetMetricI(m_sName,"MaxComboNumDigits") #define MAX_COMBO_NUM_DIGITS THEME->GetMetricI(m_sName,"MaxComboNumDigits")
#define PLAYER_OPTIONS_HIDE_FAIL_TYPE THEME->GetMetricB(m_sName,"PlayerOptionsHideFailType")
#define PLAYER_OPTIONS_SEPARATOR THEME->GetMetric (m_sName,"PlayerOptionsSeparator") #define PLAYER_OPTIONS_SEPARATOR THEME->GetMetric (m_sName,"PlayerOptionsSeparator")
@@ -324,7 +325,10 @@ void ScreenEvaluation::Init()
ActorUtil::LoadAllCommands( m_textPlayerOptions[p], m_sName ); ActorUtil::LoadAllCommands( m_textPlayerOptions[p], m_sName );
SET_XY( m_textPlayerOptions[p] ); SET_XY( m_textPlayerOptions[p] );
vector<RString> v; vector<RString> v;
GAMESTATE->m_pPlayerState[p]->m_PlayerOptions.GetStage().GetLocalizedMods( v ); PlayerOptions po = GAMESTATE->m_pPlayerState[p]->m_PlayerOptions.GetCurrent();
if( PLAYER_OPTIONS_HIDE_FAIL_TYPE )
po.m_FailType = (PlayerOptions::FailType)0; // blank out the fail type so that it won't show in the mods list
po.GetLocalizedMods( v );
RString sPO = join( PLAYER_OPTIONS_SEPARATOR, v ); RString sPO = join( PLAYER_OPTIONS_SEPARATOR, v );
m_textPlayerOptions[p].SetText( sPO ); m_textPlayerOptions[p].SetText( sPO );
this->AddChild( &m_textPlayerOptions[p] ); this->AddChild( &m_textPlayerOptions[p] );