2019-01-24 08:43:03 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-04-01 18:29:17 +00:00
|
|
|
|
using osu.Game.Graphics;
|
2018-11-20 07:51:59 +00:00
|
|
|
|
using osuTK.Graphics;
|
2017-04-05 19:51:43 +00:00
|
|
|
|
using osu.Framework.Allocation;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-03-03 01:17:39 +00:00
|
|
|
|
namespace osu.Game.Screens.Play
|
2017-02-02 08:33:39 +00:00
|
|
|
|
{
|
2018-06-09 07:28:02 +00:00
|
|
|
|
public class FailOverlay : GameplayMenuOverlay
|
2017-02-02 08:33:39 +00:00
|
|
|
|
{
|
2017-04-05 19:36:03 +00:00
|
|
|
|
public override string Header => "failed";
|
|
|
|
|
public override string Description => "you're dead, try again?";
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-04-13 02:35:36 +00:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
|
{
|
2017-12-18 10:13:25 +00:00
|
|
|
|
AddButton("Retry", colours.YellowDark, () => OnRetry?.Invoke());
|
|
|
|
|
AddButton("Quit", new Color4(170, 27, 39, 255), () => OnQuit?.Invoke());
|
2017-04-13 02:35:36 +00:00
|
|
|
|
}
|
2017-02-02 08:33:39 +00:00
|
|
|
|
}
|
|
|
|
|
}
|