2018-04-13 17:19:50 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2018-04-18 15:04:02 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
|
|
2018-04-18 15:04:02 +08:00
|
|
|
|
namespace osu.Game.Overlays.BeatmapSet.Buttons
|
2018-04-13 17:19:50 +08:00
|
|
|
|
{
|
|
|
|
|
public class HeaderButton : TriangleButton
|
|
|
|
|
{
|
|
|
|
|
public HeaderButton()
|
|
|
|
|
{
|
|
|
|
|
Height = 0;
|
|
|
|
|
RelativeSizeAxes = Axes.Y;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
|
|
|
|
BackgroundColour = OsuColour.FromHex(@"094c5f");
|
|
|
|
|
Triangles.ColourLight = OsuColour.FromHex(@"0f7c9b");
|
|
|
|
|
Triangles.ColourDark = OsuColour.FromHex(@"094c5f");
|
|
|
|
|
Triangles.TriangleScale = 1.5f;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|