1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 07:29:53 +08:00

Better inheritance

This commit is contained in:
Andrey Zavadskiy
2017-04-01 21:29:17 +03:00
Unverified
parent e3a8a14281
commit bd123fa906
2 changed files with 9 additions and 2 deletions
+8
View File
@@ -4,6 +4,8 @@
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using OpenTK.Input;
using osu.Game.Graphics;
using OpenTK.Graphics;
namespace osu.Game.Screens.Play
{
@@ -20,5 +22,11 @@ namespace osu.Game.Screens.Play
return base.OnKeyDown(state, args);
}
protected override void AddButtons(OsuColour colours)
{
AddButton(@"Retry", colours.YellowDark, OnRetry);
AddButton(@"Quit to Main Menu", new Color4(170, 27, 39, 255), OnQuit);
}
}
}
+1 -2
View File
@@ -201,8 +201,7 @@ namespace osu.Game.Screens.Play
protected virtual void AddButtons(OsuColour colours)
{
AddButton(@"Retry", colours.YellowDark, OnRetry);
AddButton(@"Quit to Main Menu", new Color4(170, 27, 39, 255), OnQuit);
}
public InGameOverlay()