[BPMDisplay] add RandomText metric for theming the "..." that appears when BPMs don't cycle and MinBPM == -1.

This commit is contained in:
AJ Kelly
2010-06-02 22:45:42 -05:00
parent 4bbf9b5b3a
commit 3638d13432
4 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -35,6 +35,8 @@ void BPMDisplay::Load()
SEPARATOR.Load( m_sName, "Separator" );
SHOW_QMARKS.Load( m_sName, "ShowQMarksInRandomCycle" );
NO_BPM_TEXT.Load( m_sName, "NoBpmText" );
//QUESTIONMARKS_TEXT.Load( m_sName, "QuestionMarksText" );
RANDOM_TEXT.Load( m_sName, "RandomText" );
VARIOUS_TEXT.Load( m_sName, "VariousText" );
RunCommands( SET_NORMAL_COMMAND );
@@ -121,7 +123,7 @@ void BPMDisplay::SetBPMRange( const DisplayBpms &bpms )
if( MinBPM == MaxBPM )
{
if( MinBPM == -1 )
SetText( "..." ); // random (todo: let themer customize string -aj)
SetText( RANDOM_TEXT ); // random (was "...") -aj
else
SetText( ssprintf("%i", MinBPM) );
}