mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 10:27:26 +09:00
Max sidebar draggable.
This commit is contained in:
parent
30323876a8
commit
3b0114671e
@ -18,14 +18,20 @@ namespace osu.Game.Overlays.Options
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
|
{
|
||||||
|
new SidebarScrollContainer
|
||||||
|
{
|
||||||
|
Children = new []
|
||||||
{
|
{
|
||||||
content = new FlowContainer
|
content = new FlowContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y,
|
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
Direction = FlowDirection.VerticalOnly
|
Direction = FlowDirection.VerticalOnly
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
new Box
|
new Box
|
||||||
{
|
{
|
||||||
@ -38,6 +44,15 @@ namespace osu.Game.Overlays.Options
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class SidebarScrollContainer : ScrollContainer
|
||||||
|
{
|
||||||
|
public SidebarScrollContainer()
|
||||||
|
{
|
||||||
|
Content.Anchor = Anchor.CentreLeft;
|
||||||
|
Content.Origin = Anchor.CentreLeft;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public class SidebarButton : Container
|
public class SidebarButton : Container
|
||||||
{
|
{
|
||||||
private TextAwesome drawableIcon;
|
private TextAwesome drawableIcon;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user