mirror of
https://github.com/ppy/osu.git
synced 2025-03-14 05:47:20 +08:00
Combine and move const
closer to usage
This commit is contained in:
parent
4f397ae7f5
commit
b2c736b42a
@ -37,11 +37,6 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
|
||||
/// </summary>
|
||||
public const double ACCURACY_TRANSFORM_DURATION = 3000;
|
||||
|
||||
/// <summary>
|
||||
/// Delay before the default applause sound is played to match the <see cref="rankText"/> timing
|
||||
/// </summary>
|
||||
public const double APPLAUSE_DELAY = 1440;
|
||||
|
||||
/// <summary>
|
||||
/// Delay after <see cref="ACCURACY_TRANSFORM_DURATION"/> for the rank text (A/B/C/D/S/SS) to appear.
|
||||
/// </summary>
|
||||
|
@ -29,6 +29,11 @@ namespace osu.Game.Screens.Ranking
|
||||
{
|
||||
public abstract class ResultsScreen : ScreenWithBeatmapBackground, IKeyBindingHandler<GlobalAction>
|
||||
{
|
||||
/// <summary>
|
||||
/// Delay before the default applause sound should be played, in order to match the grade display timing in <see cref="AccuracyCircle"/>.
|
||||
/// </summary>
|
||||
public const double APPLAUSE_DELAY = AccuracyCircle.ACCURACY_TRANSFORM_DELAY + AccuracyCircle.TEXT_APPEAR_DELAY + ScorePanel.RESIZE_DURATION + ScorePanel.TOP_LAYER_EXPAND_DELAY - 1440;
|
||||
|
||||
protected const float BACKGROUND_BLUR = 20;
|
||||
private static readonly float screen_height = 768 - TwoLayerButton.SIZE_EXTENDED.Y;
|
||||
|
||||
@ -196,10 +201,8 @@ namespace osu.Game.Screens.Ranking
|
||||
|
||||
statisticsPanel.State.BindValueChanged(onStatisticsStateChanged, true);
|
||||
|
||||
using (BeginDelayedSequence(AccuracyCircle.ACCURACY_TRANSFORM_DELAY + AccuracyCircle.TEXT_APPEAR_DELAY, true))
|
||||
{
|
||||
this.Delay(ScorePanel.RESIZE_DURATION + ScorePanel.TOP_LAYER_EXPAND_DELAY - AccuracyCircle.APPLAUSE_DELAY).Schedule(() => applauseSound?.Play());
|
||||
}
|
||||
using (BeginDelayedSequence(APPLAUSE_DELAY))
|
||||
Schedule(() => applauseSound?.Play());
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
|
Loading…
x
Reference in New Issue
Block a user