[ScreenDebugOverlay] Replaced hardcoded toggle command with ButtonTextToggledCommand metric.
This commit is contained in:
@@ -8,6 +8,11 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 $next | 2011????
|
StepMania 5.0 $next | 2011????
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/09/22
|
||||||
|
----------
|
||||||
|
* [ScreenDebugOverlay] Replaced hardcoded toggle command with
|
||||||
|
ButtonTextToggledCommand metric. [AJ]
|
||||||
|
|
||||||
2011/09/21
|
2011/09/21
|
||||||
----------
|
----------
|
||||||
* [FadingBanner] Added LoadRandom(), LoadRoulette(), LoadFallback(),
|
* [FadingBanner] Added LoadRandom(), LoadRoulette(), LoadFallback(),
|
||||||
|
|||||||
@@ -1355,6 +1355,7 @@ LineButtonX=SCREEN_CENTER_X-50
|
|||||||
LineFunctionX=SCREEN_CENTER_X-30
|
LineFunctionX=SCREEN_CENTER_X-30
|
||||||
|
|
||||||
ButtonTextOnCommand=NoStroke;zoom,0.8
|
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
|
FunctionTextOnCommand=NoStroke;zoom,0.8
|
||||||
|
|
||||||
PageStartX=SCREEN_CENTER_X-100
|
PageStartX=SCREEN_CENTER_X-100
|
||||||
@@ -1372,8 +1373,6 @@ HeaderTextX=SCREEN_LEFT+80
|
|||||||
HeaderTextY=SCREEN_TOP+18
|
HeaderTextY=SCREEN_TOP+18
|
||||||
HeaderTextOnCommand=diffusebottomedge,color("0.5,0.5,0.5,1");strokecolor,color("0,0,0,0.5")
|
HeaderTextOnCommand=diffusebottomedge,color("0.5,0.5,0.5,1");strokecolor,color("0,0,0,0.5")
|
||||||
HeaderTextOffCommand=
|
HeaderTextOffCommand=
|
||||||
|
|
||||||
LineOnCommand=zoom,0.75
|
|
||||||
#
|
#
|
||||||
|
|
||||||
[ScreenSystemLayer]
|
[ScreenSystemLayer]
|
||||||
|
|||||||
@@ -496,18 +496,10 @@ bool ScreenDebugOverlay::OverlayInput( const InputEventPlus &input )
|
|||||||
// update text to show the effect of what changed above
|
// update text to show the effect of what changed above
|
||||||
UpdateText();
|
UpdateText();
|
||||||
|
|
||||||
// blink the text to show what changed
|
// show what changed
|
||||||
BitmapText &bt = *m_vptextButton[i];
|
BitmapText &bt = *m_vptextButton[i];
|
||||||
bt.FinishTweening();
|
bt.FinishTweening();
|
||||||
// blink 5 times instead of 8
|
bt.PlayCommand("Toggled");
|
||||||
// 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user