mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 18:07:24 +08:00
derives from trianglebutton rather than osubutton
This commit is contained in:
parent
0a8fa2e6de
commit
86de6f8252
@ -15,7 +15,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
{
|
{
|
||||||
Width = 120;
|
Width = 120;
|
||||||
|
|
||||||
Child = new Container
|
Add(new Container
|
||||||
{
|
{
|
||||||
Depth = -1,
|
Depth = -1,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
@ -53,7 +53,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
Margin = new MarginPadding { Right = 5 },
|
Margin = new MarginPadding { Right = 5 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
|
|
||||||
Container pink;
|
Container pink;
|
||||||
SpriteIcon icon;
|
SpriteIcon icon;
|
||||||
Children = new Drawable[]
|
AddRange(new Drawable[]
|
||||||
{
|
{
|
||||||
pink = new Container
|
pink = new Container
|
||||||
{
|
{
|
||||||
@ -52,7 +52,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
Size = new Vector2(18),
|
Size = new Vector2(18),
|
||||||
Shadow = false,
|
Shadow = false,
|
||||||
},
|
},
|
||||||
};
|
});
|
||||||
|
|
||||||
Favourited.ValueChanged += value =>
|
Favourited.ValueChanged += value =>
|
||||||
{
|
{
|
||||||
|
@ -13,21 +13,13 @@ using osu.Framework.Allocation;
|
|||||||
|
|
||||||
namespace osu.Game.Overlays.BeatmapSet
|
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()
|
public HeaderButton()
|
||||||
{
|
{
|
||||||
Height = 0;
|
Height = 0;
|
||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
|
|
||||||
AddInternal(content = new Container
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
@ -36,9 +28,9 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
Masking = true;
|
Masking = true;
|
||||||
CornerRadius = 3;
|
CornerRadius = 3;
|
||||||
BackgroundColour = OsuColour.FromHex(@"094c5f");
|
BackgroundColour = OsuColour.FromHex(@"094c5f");
|
||||||
this.Triangles.ColourLight = OsuColour.FromHex(@"0f7c9b");
|
Triangles.ColourLight = OsuColour.FromHex(@"0f7c9b");
|
||||||
this.Triangles.ColourDark = OsuColour.FromHex(@"094c5f");
|
Triangles.ColourDark = OsuColour.FromHex(@"094c5f");
|
||||||
this.Triangles.TriangleScale = 1.5f;
|
Triangles.TriangleScale = 1.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user