mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
derives from trianglebutton rather than osubutton
This commit is contained in:
@ -13,21 +13,13 @@ using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class HeaderButton : OsuButton
|
||||
public class HeaderButton : TriangleButton
|
||||
{
|
||||
private readonly Container content;
|
||||
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
public HeaderButton()
|
||||
{
|
||||
Height = 0;
|
||||
RelativeSizeAxes = Axes.Y;
|
||||
|
||||
AddInternal(content = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both
|
||||
});
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
@ -36,9 +28,9 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
Masking = true;
|
||||
CornerRadius = 3;
|
||||
BackgroundColour = OsuColour.FromHex(@"094c5f");
|
||||
this.Triangles.ColourLight = OsuColour.FromHex(@"0f7c9b");
|
||||
this.Triangles.ColourDark = OsuColour.FromHex(@"094c5f");
|
||||
this.Triangles.TriangleScale = 1.5f;
|
||||
Triangles.ColourLight = OsuColour.FromHex(@"0f7c9b");
|
||||
Triangles.ColourDark = OsuColour.FromHex(@"094c5f");
|
||||
Triangles.TriangleScale = 1.5f;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user