mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
@ -40,6 +40,7 @@ namespace osu.Game.Modes.UI
|
|||||||
Anchor = Anchor.BottomRight,
|
Anchor = Anchor.BottomRight,
|
||||||
Origin = Anchor.BottomRight,
|
Origin = Anchor.BottomRight,
|
||||||
Margin = new MarginPadding(10),
|
Margin = new MarginPadding(10),
|
||||||
|
Y = - TwoLayerButton.SIZE_RETRACTED.Y,
|
||||||
};
|
};
|
||||||
|
|
||||||
protected override ScoreCounter CreateScoreCounter() => new ScoreCounter(6)
|
protected override ScoreCounter CreateScoreCounter() => new ScoreCounter(6)
|
||||||
|
@ -292,6 +292,10 @@ namespace osu.Game.Screens.Play
|
|||||||
sourceClock.Start();
|
sourceClock.Start();
|
||||||
initializeSkipButton();
|
initializeSkipButton();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//keep in mind this is using the interpolatedSourceClock so won't be run as early as we may expect.
|
||||||
|
HitRenderer.Alpha = 0;
|
||||||
|
HitRenderer.FadeIn(750, EasingTypes.OutQuint);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnSuspending(Screen next)
|
protected override void OnSuspending(Screen next)
|
||||||
@ -304,26 +308,25 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected override bool OnExiting(Screen next)
|
protected override bool OnExiting(Screen next)
|
||||||
{
|
{
|
||||||
if (pauseOverlay == null) return false;
|
if (pauseOverlay != null && !HitRenderer.HasReplayLoaded)
|
||||||
|
{
|
||||||
if (HitRenderer.HasReplayLoaded)
|
//pause screen override logic.
|
||||||
return false;
|
if (pauseOverlay?.State == Visibility.Hidden && !canPause) return true;
|
||||||
|
|
||||||
if (pauseOverlay.State != Visibility.Visible && !canPause) return true;
|
|
||||||
|
|
||||||
if (!IsPaused && sourceClock.IsRunning) // For if the user presses escape quickly when entering the map
|
if (!IsPaused && sourceClock.IsRunning) // For if the user presses escape quickly when entering the map
|
||||||
{
|
{
|
||||||
Pause();
|
Pause();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
{
|
|
||||||
|
HitRenderer?.FadeOut(60);
|
||||||
|
|
||||||
FadeOut(250);
|
FadeOut(250);
|
||||||
Content.ScaleTo(0.7f, 750, EasingTypes.InQuint);
|
Content.ScaleTo(0.7f, 750, EasingTypes.InQuint);
|
||||||
Background?.FadeTo(1f, 200);
|
Background?.FadeTo(1f, 200);
|
||||||
return base.OnExiting(next);
|
return base.OnExiting(next);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private Bindable<bool> mouseWheelDisabled;
|
private Bindable<bool> mouseWheelDisabled;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user