1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 07:17:18 +08:00

29 lines
855 B
C#
Raw Normal View History

// 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 04:21:12 +03:00
2016-12-05 21:09:41 +09:00
using osu.Framework.Allocation;
using osu.Framework.Audio;
2016-11-27 04:21:12 +03:00
using osu.Framework.Graphics;
namespace osu.Game.Graphics.UserInterface
{
2017-01-27 21:08:36 +09:00
public class BackButton : TwoLayerButton
2016-11-27 04:21:12 +03:00
{
public BackButton()
{
2017-01-27 21:08:36 +09:00
Text = @"Back";
Icon = FontAwesome.fa_osu_left_o;
Anchor = Anchor.BottomLeft;
Origin = Anchor.BottomLeft;
2016-11-27 05:48:31 +03:00
}
2016-12-05 21:09:41 +09:00
[BackgroundDependencyLoader]
private void load(AudioManager audio, OsuColour colours)
2016-12-05 21:09:41 +09:00
{
2017-01-27 21:08:36 +09:00
ActivationSound = audio.Sample.Get(@"Menu/menuback");
BackgroundColour = colours.Pink;
2017-01-27 21:08:36 +09:00
HoverColour = colours.PinkDark;
2016-11-27 04:21:12 +03:00
}
}
}