mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 22:13:22 +08:00
Fix button spacing
This commit is contained in:
parent
ae68dcd962
commit
a6298c60eb
@ -63,7 +63,7 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
|
|
||||||
private RadioButtonCollection toolboxCollection;
|
private RadioButtonCollection toolboxCollection;
|
||||||
|
|
||||||
private ToolboxGroup togglesCollection;
|
private FillFlowContainer togglesCollection;
|
||||||
|
|
||||||
protected HitObjectComposer(Ruleset ruleset)
|
protected HitObjectComposer(Ruleset ruleset)
|
||||||
{
|
{
|
||||||
@ -121,10 +121,20 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
Spacing = new Vector2(10),
|
Spacing = new Vector2(10),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new ToolboxGroup("toolbox") { Child = toolboxCollection = new RadioButtonCollection { RelativeSizeAxes = Axes.X } },
|
new ToolboxGroup("toolbox")
|
||||||
togglesCollection = new ToolboxGroup("toggles")
|
|
||||||
{
|
{
|
||||||
ChildrenEnumerable = Toggles.Select(b => new DrawableTernaryButton(b))
|
Child = toolboxCollection = new RadioButtonCollection { RelativeSizeAxes = Axes.X }
|
||||||
|
},
|
||||||
|
new ToolboxGroup("toggles")
|
||||||
|
{
|
||||||
|
Child = togglesCollection = new FillFlowContainer
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Direction = FillDirection.Vertical,
|
||||||
|
Spacing = new Vector2(0, 5),
|
||||||
|
ChildrenEnumerable = Toggles.Select(b => new DrawableTernaryButton(b))
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user