2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-02-07 12:59:30 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-11-27 09:21:12 +08:00
|
|
|
|
|
2016-12-05 20:09:41 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2016-11-27 09:21:12 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Graphics.UserInterface
|
|
|
|
|
{
|
2017-01-27 20:08:36 +08:00
|
|
|
|
public class BackButton : TwoLayerButton
|
2016-11-27 09:21:12 +08:00
|
|
|
|
{
|
|
|
|
|
public BackButton()
|
|
|
|
|
{
|
2017-01-27 20:08:36 +08:00
|
|
|
|
Text = @"Back";
|
|
|
|
|
Icon = FontAwesome.fa_osu_left_o;
|
|
|
|
|
Anchor = Anchor.BottomLeft;
|
|
|
|
|
Origin = Anchor.BottomLeft;
|
2016-11-27 10:48:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
2016-12-05 20:09:41 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
2017-06-30 03:05:37 +08:00
|
|
|
|
private void load(OsuColour colours)
|
2016-12-05 20:09:41 +08:00
|
|
|
|
{
|
2017-02-24 05:33:37 +08:00
|
|
|
|
BackgroundColour = colours.Pink;
|
2017-01-27 20:08:36 +08:00
|
|
|
|
HoverColour = colours.PinkDark;
|
2016-11-27 09:21:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|