[OptionRow] Set text after running OnCommand

This commit is contained in:
AJ Kelly
2012-07-19 19:37:06 -05:00
parent fe8578896b
commit 52b9c723dc
2 changed files with 1006 additions and 1000 deletions
+5
View File
@@ -8,6 +8,11 @@ ________________________________________________________________________________
StepMania 5.0 alpha 3 | 20120711
--------------------------------------------------------------------------------
2012/07/19
----------
* [OptionRow] Set text after running OnCommand so commands like "uppercase,true"
actually have a chance to work. [AJ]
2012/07/17
----------
* [SongManager] Fix a bug where DVNO wouldn't always be gold. [AJ]
+3 -2
View File
@@ -350,10 +350,11 @@ void OptionRow::InitText( RowType type )
// init text
BitmapText *bt = new BitmapText( m_pParentType->m_textItem );
m_textItems.push_back( bt );
RString sText = GetThemedItemText( c );
bt->SetText( sText );
bt->SetBaseZoomX( fBaseZoom );
bt->PlayCommand( "On" );
// Set text after running OnCommand so e.g. uppercase,true works -aj
RString sText = GetThemedItemText( c );
bt->SetText( sText );
// set the X position of each item in the line
float fItemWidth = bt->GetZoomedWidth();