mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
removed useless stuff
This commit is contained in:
@ -6,6 +6,7 @@ using osu.Framework.Input;
|
|||||||
using OpenTK.Input;
|
using OpenTK.Input;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
|
using osu.Framework.Allocation;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Play
|
namespace osu.Game.Screens.Play
|
||||||
{
|
{
|
||||||
@ -26,7 +27,8 @@ namespace osu.Game.Screens.Play
|
|||||||
return base.OnKeyDown(state, args);
|
return base.OnKeyDown(state, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void AddButtons(OsuColour colours)
|
[BackgroundDependencyLoader]
|
||||||
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
AddButton(@"Retry", colours.YellowDark, OnRetry);
|
AddButton(@"Retry", colours.YellowDark, OnRetry);
|
||||||
AddButton(@"Quit to Main Menu", new Color4(170, 27, 39, 255), OnQuit);
|
AddButton(@"Quit to Main Menu", new Color4(170, 27, 39, 255), OnQuit);
|
||||||
|
@ -82,8 +82,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected override bool OnMouseMove(InputState state) => true;
|
protected override bool OnMouseMove(InputState state) => true;
|
||||||
|
|
||||||
protected abstract void AddButtons(OsuColour colours);
|
|
||||||
|
|
||||||
protected void AddButton(string text, Color4 colour, Action action)
|
protected void AddButton(string text, Color4 colour, Action action)
|
||||||
{
|
{
|
||||||
buttons.Add(new PauseButton
|
buttons.Add(new PauseButton
|
||||||
@ -185,8 +183,6 @@ namespace osu.Game.Screens.Play
|
|||||||
};
|
};
|
||||||
|
|
||||||
Retries = 0;
|
Retries = 0;
|
||||||
|
|
||||||
AddButtons(colours);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected InGameOverlay()
|
protected InGameOverlay()
|
||||||
|
@ -7,6 +7,7 @@ using osu.Game.Graphics;
|
|||||||
using OpenTK.Input;
|
using OpenTK.Input;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
|
using osu.Framework.Allocation;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Play
|
namespace osu.Game.Screens.Play
|
||||||
{
|
{
|
||||||
@ -29,7 +30,8 @@ namespace osu.Game.Screens.Play
|
|||||||
return base.OnKeyDown(state, args);
|
return base.OnKeyDown(state, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void AddButtons(OsuColour colours)
|
[BackgroundDependencyLoader]
|
||||||
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
AddButton(@"Continue", colours.Green, OnResume);
|
AddButton(@"Continue", colours.Green, OnResume);
|
||||||
AddButton(@"Retry", colours.YellowDark, OnRetry);
|
AddButton(@"Retry", colours.YellowDark, OnRetry);
|
||||||
|
Reference in New Issue
Block a user