mirror of
https://github.com/ppy/osu.git
synced 2024-12-26 01:22:55 +08:00
30 lines
1001 B
C#
30 lines
1001 B
C#
|
// 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.
|
|||
|
|
|||
|
using System;
|
|||
|
using System.Linq;
|
|||
|
using osu.Framework.Allocation;
|
|||
|
using osu.Game.Graphics;
|
|||
|
using osuTK.Graphics;
|
|||
|
|
|||
|
namespace osu.Game.Screens.Play
|
|||
|
{
|
|||
|
public class PauseOverlay : GameplayMenuOverlay
|
|||
|
{
|
|||
|
public Action OnResume;
|
|||
|
|
|||
|
public override string Header => "paused";
|
|||
|
public override string Description => "you're not going to do what i think you're going to do, are ya?";
|
|||
|
|
|||
|
protected override Action BackAction => () => InternalButtons.Children.First().Click();
|
|||
|
|
|||
|
[BackgroundDependencyLoader]
|
|||
|
private void load(OsuColour colours)
|
|||
|
{
|
|||
|
AddButton("Continue", colours.Green, () => OnResume?.Invoke());
|
|||
|
AddButton("Retry", colours.YellowDark, () => OnRetry?.Invoke());
|
|||
|
AddButton("Quit", new Color4(170, 27, 39, 255), () => OnQuit?.Invoke());
|
|||
|
}
|
|||
|
}
|
|||
|
}
|