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
|
|
|
|
|
|
|
|
|
using osu.Game.Graphics;
|
2018-11-20 07:51:59 +00:00
|
|
|
|
using osuTK.Graphics;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play
|
|
|
|
|
{
|
2018-06-09 07:28:02 +00:00
|
|
|
|
public class FailOverlay : GameplayMenuOverlay
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
|
|
|
|
public override string Header => "failed";
|
|
|
|
|
public override string Description => "you're dead, try again?";
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
|
{
|
|
|
|
|
AddButton("Retry", colours.YellowDark, () => OnRetry?.Invoke());
|
|
|
|
|
AddButton("Quit", new Color4(170, 27, 39, 255), () => OnQuit?.Invoke());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|