[ScreenDebugOverlay] Replaced hardcoded toggle command with ButtonTextToggledCommand metric.
This commit is contained in:
@@ -8,6 +8,11 @@ ________________________________________________________________________________
|
||||
StepMania 5.0 $next | 2011????
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
2011/09/22
|
||||
----------
|
||||
* [ScreenDebugOverlay] Replaced hardcoded toggle command with
|
||||
ButtonTextToggledCommand metric. [AJ]
|
||||
|
||||
2011/09/21
|
||||
----------
|
||||
* [FadingBanner] Added LoadRandom(), LoadRoulette(), LoadFallback(),
|
||||
|
||||
@@ -1355,6 +1355,7 @@ LineButtonX=SCREEN_CENTER_X-50
|
||||
LineFunctionX=SCREEN_CENTER_X-30
|
||||
|
||||
ButtonTextOnCommand=NoStroke;zoom,0.8
|
||||
ButtonTextToggledCommand=accelerate,0.025;glow,color("1,0,0,1");sleep,0.125;decelerate,0.2;glow,color("1,0,0,0");
|
||||
FunctionTextOnCommand=NoStroke;zoom,0.8
|
||||
|
||||
PageStartX=SCREEN_CENTER_X-100
|
||||
@@ -1372,8 +1373,6 @@ HeaderTextX=SCREEN_LEFT+80
|
||||
HeaderTextY=SCREEN_TOP+18
|
||||
HeaderTextOnCommand=diffusebottomedge,color("0.5,0.5,0.5,1");strokecolor,color("0,0,0,0.5")
|
||||
HeaderTextOffCommand=
|
||||
|
||||
LineOnCommand=zoom,0.75
|
||||
#
|
||||
|
||||
[ScreenSystemLayer]
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user