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