mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 00:42:55 +08:00
Fixes
This commit is contained in:
parent
62693a6a59
commit
85c2184170
@ -14,6 +14,7 @@ using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using OpenTK.Input;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Game.Screens.Play
|
||||
{
|
||||
@ -43,7 +44,7 @@ namespace osu.Game.Screens.Play
|
||||
set { description = value; }
|
||||
}
|
||||
|
||||
private readonly FillFlowContainer buttons;
|
||||
private FillFlowContainer buttons;
|
||||
|
||||
public int Retries
|
||||
{
|
||||
@ -83,7 +84,7 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
}
|
||||
|
||||
private readonly FillFlowContainer retryCounterContainer;
|
||||
private FillFlowContainer retryCounterContainer;
|
||||
|
||||
public override bool HandleInput => State == Visibility.Visible;
|
||||
|
||||
@ -123,11 +124,9 @@ namespace osu.Game.Screens.Play
|
||||
});
|
||||
}
|
||||
|
||||
public FailOverlay()
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
AlwaysReceiveInput = true;
|
||||
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Box
|
||||
@ -211,8 +210,19 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
Retries = 0;
|
||||
|
||||
AddButton(@"Retry", Color4.Yellow, OnRetry);
|
||||
AddButtons(colours);
|
||||
}
|
||||
|
||||
protected virtual void AddButtons(OsuColour colours)
|
||||
{
|
||||
AddButton(@"Retry", colours.YellowDark, OnRetry);
|
||||
AddButton(@"Quit to Main Menu", new Color4(170, 27, 39, 255), OnQuit);
|
||||
}
|
||||
|
||||
public FailOverlay()
|
||||
{
|
||||
AlwaysReceiveInput = true;
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,9 +26,11 @@ namespace osu.Game.Screens.Play
|
||||
return base.OnKeyDown(state, args);
|
||||
}
|
||||
|
||||
public PauseOverlay()
|
||||
protected override void AddButtons(OsuColour colours)
|
||||
{
|
||||
AddButton(@"Continue", Color4.Green, OnResume);
|
||||
AddButton(@"Continue", colours.Green, OnResume);
|
||||
AddButton(@"Retry", colours.YellowDark, OnRetry);
|
||||
AddButton(@"Quit to Main Menu", new Color4(170, 27, 39, 255), OnQuit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user