1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 00:42:55 +08:00

removed useless stuff

This commit is contained in:
Andrey Zavadskiy 2017-04-05 22:51:43 +03:00
parent 6a510097df
commit 0946e42363
3 changed files with 6 additions and 6 deletions

View File

@ -6,6 +6,7 @@ using osu.Framework.Input;
using OpenTK.Input;
using osu.Game.Graphics;
using OpenTK.Graphics;
using osu.Framework.Allocation;
namespace osu.Game.Screens.Play
{
@ -26,7 +27,8 @@ namespace osu.Game.Screens.Play
return base.OnKeyDown(state, args);
}
protected override void AddButtons(OsuColour colours)
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
AddButton(@"Retry", colours.YellowDark, OnRetry);
AddButton(@"Quit to Main Menu", new Color4(170, 27, 39, 255), OnQuit);

View File

@ -82,8 +82,6 @@ namespace osu.Game.Screens.Play
protected override bool OnMouseMove(InputState state) => true;
protected abstract void AddButtons(OsuColour colours);
protected void AddButton(string text, Color4 colour, Action action)
{
buttons.Add(new PauseButton
@ -185,8 +183,6 @@ namespace osu.Game.Screens.Play
};
Retries = 0;
AddButtons(colours);
}
protected InGameOverlay()

View File

@ -7,6 +7,7 @@ using osu.Game.Graphics;
using OpenTK.Input;
using osu.Framework.Graphics.Containers;
using OpenTK.Graphics;
using osu.Framework.Allocation;
namespace osu.Game.Screens.Play
{
@ -29,7 +30,8 @@ namespace osu.Game.Screens.Play
return base.OnKeyDown(state, args);
}
protected override void AddButtons(OsuColour colours)
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
AddButton(@"Continue", colours.Green, OnResume);
AddButton(@"Retry", colours.YellowDark, OnRetry);