remove per-difficulty characters in favor of text coloring and stroke fonts. Not all themes are going to want coloring based on Difficulty (e.g. Pump)
This commit is contained in:
@@ -60,11 +60,8 @@ void DifficultyMeter::Load( const RString &sType )
|
||||
|
||||
if( m_bShowTicks )
|
||||
{
|
||||
RString sChars = "10"; // on, off
|
||||
m_textTicks.SetName( "Ticks" );
|
||||
RString sChars;
|
||||
for( unsigned i = 0; i < NUM_Difficulty; ++i )
|
||||
sChars += char(i + '0'); // 01234
|
||||
sChars += 'X'; // Off
|
||||
m_textTicks.LoadFromTextureAndChars( THEME->GetPathF(sType,"ticks"), sChars );
|
||||
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textTicks, sType );
|
||||
this->AddChild( &m_textTicks );
|
||||
@@ -181,8 +178,8 @@ void DifficultyMeter::SetInternal( const SetParams ¶ms )
|
||||
|
||||
if( m_bShowTicks )
|
||||
{
|
||||
char on = char(params.dc + '0');
|
||||
char off = 'X';
|
||||
char on = char('1');
|
||||
char off = '0';
|
||||
|
||||
RString sNewText;
|
||||
int iNumOn = min( (int)m_iMaxTicks, params.iMeter );
|
||||
|
||||
@@ -49,7 +49,7 @@ private:
|
||||
void SetInternal( const SetParams ¶ms );
|
||||
|
||||
AutoActor m_sprFrame;
|
||||
BitmapText m_textTicks; /* XXXX000000 */
|
||||
BitmapText m_textTicks; /* 111100000 */
|
||||
BitmapText m_textMeter; /* 3, 9 */
|
||||
BitmapText m_textEditDescription;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user