mirror of
https://github.com/ppy/osu
synced 2024-12-13 02:17:32 +00:00
Use debounce constant for select/deselect animation
This commit is contained in:
parent
31f370ec9b
commit
502193e1c6
@ -176,7 +176,7 @@ namespace osu.Game.Overlays.Mods
|
||||
dequeuedAction();
|
||||
|
||||
// each time we play an animation, we decrease the time until the next animation (to ramp the visual and audible elements).
|
||||
selectionDelay = Math.Max(30, selectionDelay * 0.8f);
|
||||
selectionDelay = Math.Max(ModSelectPanel.SAMPLE_PLAYBACK_DELAY, selectionDelay * 0.8f);
|
||||
lastSelection = Time.Current;
|
||||
}
|
||||
else
|
||||
|
@ -44,7 +44,7 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
public const float CORNER_RADIUS = 7;
|
||||
public const float HEIGHT = 42;
|
||||
public double SAMPLE_PLAYBACK_DELAY = 30;
|
||||
public const double SAMPLE_PLAYBACK_DELAY = 30;
|
||||
|
||||
protected virtual float IdleSwitchWidth => 14;
|
||||
protected virtual float ExpandedSwitchWidth => 30;
|
||||
|
Loading…
Reference in New Issue
Block a user