mirror of
https://github.com/ppy/osu
synced 2025-01-22 05:43:14 +00:00
Rename DropdownButton to DropdownHeader
This commit is contained in:
parent
208224cc0d
commit
1c0b0996cf
@ -38,7 +38,7 @@ namespace osu.Game.Overlays.News.Sidebar
|
|||||||
Spacing = new Vector2(0, 5),
|
Spacing = new Vector2(0, 5),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new DropdownButton(posts.ElementAt(0).PublishedAt)
|
new DropdownHeader(posts.ElementAt(0).PublishedAt)
|
||||||
{
|
{
|
||||||
IsOpen = { BindTarget = IsOpen }
|
IsOpen = { BindTarget = IsOpen }
|
||||||
},
|
},
|
||||||
@ -96,15 +96,16 @@ namespace osu.Game.Overlays.News.Sidebar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class DropdownButton : OsuClickableContainer
|
private class DropdownHeader : OsuClickableContainer
|
||||||
{
|
{
|
||||||
public readonly BindableBool IsOpen = new BindableBool();
|
public readonly BindableBool IsOpen = new BindableBool();
|
||||||
|
|
||||||
private readonly SpriteIcon icon;
|
private readonly SpriteIcon icon;
|
||||||
|
|
||||||
public DropdownButton(DateTimeOffset date)
|
public DropdownHeader(DateTimeOffset date)
|
||||||
{
|
{
|
||||||
Size = new Vector2(160, header_height);
|
RelativeSizeAxes = Axes.X;
|
||||||
|
Height = header_height;
|
||||||
Action = IsOpen.Toggle;
|
Action = IsOpen.Toggle;
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user