Add stable-alike BackButton

This commit is contained in:
stanriders
2016-11-27 04:21:12 +03:00
parent 1427cce76f
commit e9343fe53d
5 changed files with 98 additions and 7 deletions

View File

@ -10,6 +10,7 @@ using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Transformations;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Screens.Backgrounds;
using osu.Game.Graphics.UserInterface;
using OpenTK;
using OpenTK.Graphics;
@ -17,7 +18,7 @@ namespace osu.Game.Screens
{
public class GameModeWhiteBox : OsuGameMode
{
private Button popButton;
private BackButton popButton;
const int transition_time = 1000;
@ -113,14 +114,12 @@ namespace osu.Game.Screens
},
}
},
popButton = new Button
popButton = new BackButton
{
Text = @"Back",
RelativeSizeAxes = Axes.X,
Size = new Vector2(0.1f, 40),
RelativeSizeAxes = Axes.None,
Height = 40,
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Colour = new Color4(235, 51, 153, 255),
Alpha = 0,
Action = delegate {
Exit();