1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-30 07:07:25 +08:00
osu-lazer/osu.Game/Overlays/BeatmapSet/HeaderButton.cs

38 lines
1.1 KiB
C#
Raw Normal View History

2017-09-13 10:41:10 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
2017-09-13 10:41:10 +08:00
using osu.Game.Graphics.Backgrounds;
using osu.Game.Graphics.Containers;
using osu.Framework.Audio;
using osu.Framework.Allocation;
2017-09-13 10:41:10 +08:00
2017-09-25 17:26:27 +08:00
namespace osu.Game.Overlays.BeatmapSet
2017-09-13 10:41:10 +08:00
{
public class HeaderButton : TriangleButton
2017-09-13 10:41:10 +08:00
{
public HeaderButton()
{
Height = 0;
RelativeSizeAxes = Axes.Y;
}
[BackgroundDependencyLoader]
private void load(OsuColour colours, AudioManager audio)
{
Masking = true;
CornerRadius = 3;
BackgroundColour = OsuColour.FromHex(@"094c5f");
Triangles.ColourLight = OsuColour.FromHex(@"0f7c9b");
Triangles.ColourDark = OsuColour.FromHex(@"094c5f");
Triangles.TriangleScale = 1.5f;
2017-09-13 10:41:10 +08:00
}
2017-09-13 10:41:10 +08:00
}
}