[ScreenDebugOverlay] Replaced hardcoded toggle command with ButtonTextToggledCommand metric.

This commit is contained in:
AJ Kelly
2011-09-22 19:09:58 -05:00
parent 561bdeeeb8
commit 8ae8bab984
3 changed files with 8 additions and 12 deletions
+2 -10
View File
@@ -496,18 +496,10 @@ bool ScreenDebugOverlay::OverlayInput( const InputEventPlus &input )
// update text to show the effect of what changed above
UpdateText();
// blink the text to show what changed
// show what changed
BitmapText &bt = *m_vptextButton[i];
bt.FinishTweening();
// blink 5 times instead of 8
// TODO: make this all metrics instead -aj
for( i=0; i<5; i++ )
{
bt.SetGlow( RageColor(1,0,0,1) );
bt.Sleep(0.1f);
bt.SetGlow( RageColor(1,0,0,0) );
bt.Sleep(0.1f);
}
bt.PlayCommand("Toggled");
return true;
}