mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Renamed Player.isPaused to IsPaused, did a small patch suggested for how the player can click through the pause menu onto the Playfield(only partially works, upstream changes need to be made for full functionality), made Retry default to Resume until retrying is implemented, minor cleanups
This commit is contained in:
@ -23,13 +23,15 @@ namespace osu.Game.Overlays.Pause
|
||||
|
||||
private SpriteText retryCounter;
|
||||
|
||||
public override bool Contains(Vector2 screenSpacePos) => true;
|
||||
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new ClickableContainer
|
||||
new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
||||
@ -147,15 +149,8 @@ namespace osu.Game.Overlays.Pause
|
||||
retryCounter.Text = $"You've retried {String.Format("{0:n0}", count)} time{(count == 1) ? "" : "s"} in this session";
|
||||
}
|
||||
|
||||
protected override void PopIn()
|
||||
{
|
||||
FadeTo(1, fadeDuration, EasingTypes.In);
|
||||
}
|
||||
|
||||
protected override void PopOut()
|
||||
{
|
||||
FadeTo(0, fadeDuration, EasingTypes.In);
|
||||
}
|
||||
protected override void PopIn() => FadeIn(fadeDuration, EasingTypes.In);
|
||||
protected override void PopOut() => FadeOut(fadeDuration, EasingTypes.In);
|
||||
|
||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
|
Reference in New Issue
Block a user