mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Max sidebar draggable.
This commit is contained in:
parent
30323876a8
commit
3b0114671e
@ -80,7 +80,7 @@ namespace osu.Game
|
||||
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Exo2.0-Black"));
|
||||
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Exo2.0-BlackItalic"));
|
||||
|
||||
(Options = new OptionsOverlay { Depth = float.MaxValue / 2}).Preload(game, Add);
|
||||
(Options = new OptionsOverlay { Depth = float.MaxValue / 2 }).Preload(game, Add);
|
||||
|
||||
API = new APIAccess()
|
||||
{
|
||||
|
@ -19,13 +19,19 @@ namespace osu.Game.Overlays.Options
|
||||
RelativeSizeAxes = Axes.Y;
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
content = new FlowContainer
|
||||
new SidebarScrollContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Origin = Anchor.CentreLeft,
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Direction = FlowDirection.VerticalOnly
|
||||
Children = new []
|
||||
{
|
||||
content = new FlowContainer
|
||||
{
|
||||
Origin = Anchor.CentreLeft,
|
||||
Anchor = Anchor.CentreLeft,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Direction = FlowDirection.VerticalOnly
|
||||
}
|
||||
}
|
||||
},
|
||||
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
|
||||
{
|
||||
private TextAwesome drawableIcon;
|
||||
|
Loading…
x
Reference in New Issue
Block a user