[ScreenEvaluation] new metric DetailLineFormat. must contain two integer flags (%d or %i should work.)
This commit is contained in:
@@ -48,6 +48,7 @@ static const char *DetailLineNames[NUM_DetailLine] =
|
|||||||
"NumSteps","Jumps", "Holds", "Mines", "Hands", "Rolls",
|
"NumSteps","Jumps", "Holds", "Mines", "Hands", "Rolls",
|
||||||
};
|
};
|
||||||
XToString( DetailLine );
|
XToString( DetailLine );
|
||||||
|
#define DETAILLINE_FORMAT THEME->GetMetric (m_sName,"DetailLineFormat")
|
||||||
|
|
||||||
#define CHEER_DELAY_SECONDS THEME->GetMetricF(m_sName,"CheerDelaySeconds")
|
#define CHEER_DELAY_SECONDS THEME->GetMetricF(m_sName,"CheerDelaySeconds")
|
||||||
#define BAR_ACTUAL_MAX_COMMAND THEME->GetMetricA(m_sName,"BarActualMaxCommand")
|
#define BAR_ACTUAL_MAX_COMMAND THEME->GetMetricA(m_sName,"BarActualMaxCommand")
|
||||||
@@ -370,9 +371,7 @@ void ScreenEvaluation::Init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// init bonus area
|
// init bonus area
|
||||||
//
|
|
||||||
if( SHOW_BONUS_AREA )
|
if( SHOW_BONUS_AREA )
|
||||||
{
|
{
|
||||||
FOREACH_EnabledPlayer( p )
|
FOREACH_EnabledPlayer( p )
|
||||||
@@ -411,9 +410,7 @@ void ScreenEvaluation::Init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// init survived area
|
// init survived area
|
||||||
//
|
|
||||||
if( SHOW_SURVIVED_AREA )
|
if( SHOW_SURVIVED_AREA )
|
||||||
{
|
{
|
||||||
FOREACH_EnabledPlayer( p )
|
FOREACH_EnabledPlayer( p )
|
||||||
@@ -435,9 +432,7 @@ void ScreenEvaluation::Init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// init win area
|
// init win area
|
||||||
//
|
|
||||||
if( SHOW_WIN_AREA )
|
if( SHOW_WIN_AREA )
|
||||||
{
|
{
|
||||||
FOREACH_EnabledPlayer( p )
|
FOREACH_EnabledPlayer( p )
|
||||||
@@ -459,9 +454,7 @@ void ScreenEvaluation::Init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// init judgment area
|
// init judgment area
|
||||||
//
|
|
||||||
FOREACH_ENUM( JudgmentLine, l )
|
FOREACH_ENUM( JudgmentLine, l )
|
||||||
{
|
{
|
||||||
if( l == JudgmentLine_W1 && !GAMESTATE->ShowW1() )
|
if( l == JudgmentLine_W1 && !GAMESTATE->ShowW1() )
|
||||||
@@ -528,9 +521,7 @@ void ScreenEvaluation::Init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// init detail area
|
// init detail area
|
||||||
//
|
|
||||||
if( SHOW_DETAIL_AREA )
|
if( SHOW_DETAIL_AREA )
|
||||||
{
|
{
|
||||||
FOREACH_EnabledPlayer( p )
|
FOREACH_EnabledPlayer( p )
|
||||||
@@ -560,14 +551,14 @@ void ScreenEvaluation::Init()
|
|||||||
const int iActual = lrintf(m_pStageStats->m_player[p].m_radarActual[ind]);
|
const int iActual = lrintf(m_pStageStats->m_player[p].m_radarActual[ind]);
|
||||||
const int iPossible = lrintf(m_pStageStats->m_player[p].m_radarPossible[ind]);
|
const int iPossible = lrintf(m_pStageStats->m_player[p].m_radarPossible[ind]);
|
||||||
|
|
||||||
m_textDetailText[l][p].SetText( ssprintf("%3d/%3d",iActual,iPossible) );
|
// todo: check if format string is valid
|
||||||
|
// (two integer values in DETAILLINE_FORMAT) -aj
|
||||||
|
m_textDetailText[l][p].SetText( ssprintf(DETAILLINE_FORMAT,iActual,iPossible) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// init score area
|
// init score area
|
||||||
//
|
|
||||||
if( SHOW_SCORE_AREA )
|
if( SHOW_SCORE_AREA )
|
||||||
{
|
{
|
||||||
m_sprScoreLabel.Load( THEME->GetPathG(m_sName,"ScoreLabel") );
|
m_sprScoreLabel.Load( THEME->GetPathG(m_sName,"ScoreLabel") );
|
||||||
@@ -588,9 +579,7 @@ void ScreenEvaluation::Init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// init time area
|
// init time area
|
||||||
//
|
|
||||||
if( SHOW_TIME_AREA )
|
if( SHOW_TIME_AREA )
|
||||||
{
|
{
|
||||||
m_sprTimeLabel.Load( THEME->GetPathG(m_sName,"time label") );
|
m_sprTimeLabel.Load( THEME->GetPathG(m_sName,"time label") );
|
||||||
@@ -611,9 +600,7 @@ void ScreenEvaluation::Init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// init records area
|
// init records area
|
||||||
//
|
|
||||||
bool bOneHasNewTopRecord = false;
|
bool bOneHasNewTopRecord = false;
|
||||||
FOREACH_PlayerNumber( p )
|
FOREACH_PlayerNumber( p )
|
||||||
if( GAMESTATE->IsPlayerEnabled(p) && (m_pStageStats->m_player[p].m_iMachineHighScoreIndex == 0 || m_pStageStats->m_player[p].m_iPersonalHighScoreIndex == 0) )
|
if( GAMESTATE->IsPlayerEnabled(p) && (m_pStageStats->m_player[p].m_iMachineHighScoreIndex == 0 || m_pStageStats->m_player[p].m_iPersonalHighScoreIndex == 0) )
|
||||||
|
|||||||
Reference in New Issue
Block a user