[PaneDisplay] Added NullCountString metric.

This commit is contained in:
AJ Kelly
2012-05-31 03:20:24 -05:00
parent 38ca6bbea3
commit 6d0e884b95
4 changed files with 13 additions and 8 deletions
+5 -1
View File
@@ -8,9 +8,13 @@ ________________________________________________________________________________
StepMania 5.0 ???? ?? | 20120???
--------------------------------------------------------------------------------
2012/05/31
----------
* [PaneDisplay] Added NullCountString metric. [AJ]
2012/05/27
----------
* [MusicWheel] Added EmptyColor metric.
* [MusicWheel] Added EmptyColor metric. [AJ]
* [PlayerState] Enabled GetPlayerController Lua binding.
2012/05/21
+3
View File
@@ -4503,3 +4503,6 @@ TimerStealth=true
ForceTimer=true
TimerMetricsGroup="MenuTimerNoSound"
TimerOnCommand=visible,false
[PaneDisplay]
NullCountString=""
+4 -7
View File
@@ -66,6 +66,7 @@ void PaneDisplay::Load( const RString &sMetricsGroup, PlayerNumber pn )
EMPTY_MACHINE_HIGH_SCORE_NAME.Load( sMetricsGroup, "EmptyMachineHighScoreName" );
NOT_AVAILABLE.Load( sMetricsGroup, "NotAvailable" );
COUNT_FORMAT.Load( sMetricsGroup, "CountFormat" );
NULL_COUNT_STRING.Load( sMetricsGroup, "NullCountString" );
FOREACH_ENUM( PaneCategory, pc )
{
@@ -114,8 +115,9 @@ void PaneDisplay::LoadFromNode( const XNode *pNode )
void PaneDisplay::SetContent( PaneCategory c )
{
RString str = ""; // fill this in
float val = 0; // fill this in
// these get filled in later:
RString str = NULL_COUNT_STRING;
float val = 0;
const Song *pSong = GAMESTATE->m_pCurSong;
const Steps *pSteps = GAMESTATE->m_pCurSteps[m_PlayerNumber];
@@ -124,11 +126,6 @@ void PaneDisplay::SetContent( PaneCategory c )
const Profile *pProfile = PROFILEMAN->IsPersistentProfile(m_PlayerNumber) ? PROFILEMAN->GetProfile(m_PlayerNumber) : NULL;
bool bIsPlayerEdit = pSteps && pSteps->IsAPlayerEdit();
// Note: In SM3.9, all values would get set to a "?" if the current
// selection (pSong/pCourse, in this case) is invalid.
// We use fallback values (everything is blank).
// TODO: add a theme option to use a similar behavior. -aj
if(GAMESTATE->IsCourseMode() && !pTrail)
{
if( (g_Contents[c].req&NEED_PROFILE) )
+1
View File
@@ -58,6 +58,7 @@ private:
LocalizedString EMPTY_MACHINE_HIGH_SCORE_NAME;
LocalizedString NOT_AVAILABLE;
ThemeMetric<RString> COUNT_FORMAT;
ThemeMetric<RString> NULL_COUNT_STRING;
};
#endif