mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 18:12:56 +08:00
Move customisation panel to be in same area as main content
This commit is contained in:
parent
15e0ea332b
commit
7253866e17
@ -158,37 +158,57 @@ namespace osu.Game.Overlays.Mods
|
|||||||
},
|
},
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
// Body
|
new Container
|
||||||
new OsuScrollContainer
|
|
||||||
{
|
{
|
||||||
ScrollbarVisible = false,
|
|
||||||
Origin = Anchor.TopCentre,
|
|
||||||
Anchor = Anchor.TopCentre,
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Padding = new MarginPadding
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
Vertical = 10,
|
// Body
|
||||||
Horizontal = OsuScreen.HORIZONTAL_OVERFLOW_PADDING
|
new OsuScrollContainer
|
||||||
},
|
|
||||||
Child = ModSectionsContainer = new FillFlowContainer<ModSection>
|
|
||||||
{
|
|
||||||
Origin = Anchor.TopCentre,
|
|
||||||
Anchor = Anchor.TopCentre,
|
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
AutoSizeAxes = Axes.Y,
|
|
||||||
Spacing = new Vector2(0f, 10f),
|
|
||||||
Width = content_width,
|
|
||||||
LayoutDuration = 200,
|
|
||||||
LayoutEasing = Easing.OutQuint,
|
|
||||||
Children = new ModSection[]
|
|
||||||
{
|
{
|
||||||
new DifficultyReductionSection { Action = modButtonPressed },
|
ScrollbarVisible = false,
|
||||||
new DifficultyIncreaseSection { Action = modButtonPressed },
|
Origin = Anchor.TopCentre,
|
||||||
new AutomationSection { Action = modButtonPressed },
|
Anchor = Anchor.TopCentre,
|
||||||
new ConversionSection { Action = modButtonPressed },
|
RelativeSizeAxes = Axes.Both,
|
||||||
new FunSection { Action = modButtonPressed },
|
Padding = new MarginPadding
|
||||||
}
|
{
|
||||||
},
|
Vertical = 10,
|
||||||
|
Horizontal = OsuScreen.HORIZONTAL_OVERFLOW_PADDING
|
||||||
|
},
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
ModSectionsContainer = new FillFlowContainer<ModSection>
|
||||||
|
{
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
|
Anchor = Anchor.TopCentre,
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Spacing = new Vector2(0f, 10f),
|
||||||
|
Width = content_width,
|
||||||
|
LayoutDuration = 200,
|
||||||
|
LayoutEasing = Easing.OutQuint,
|
||||||
|
Children = new ModSection[]
|
||||||
|
{
|
||||||
|
new DifficultyReductionSection { Action = modButtonPressed },
|
||||||
|
new DifficultyIncreaseSection { Action = modButtonPressed },
|
||||||
|
new AutomationSection { Action = modButtonPressed },
|
||||||
|
new ConversionSection { Action = modButtonPressed },
|
||||||
|
new FunSection { Action = modButtonPressed },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ModSettingsContainer = new ModSettingsContainer
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Anchor = Anchor.BottomRight,
|
||||||
|
Origin = Anchor.BottomRight,
|
||||||
|
Width = 0.3f,
|
||||||
|
Alpha = 0,
|
||||||
|
Padding = new MarginPadding(30),
|
||||||
|
SelectedMods = { BindTarget = SelectedMods },
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
@ -281,16 +301,6 @@ namespace osu.Game.Overlays.Mods
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
ModSettingsContainer = new ModSettingsContainer
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Anchor = Anchor.BottomRight,
|
|
||||||
Origin = Anchor.BottomRight,
|
|
||||||
Width = 0.25f,
|
|
||||||
Alpha = 0,
|
|
||||||
X = -100,
|
|
||||||
SelectedMods = { BindTarget = SelectedMods },
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
((IBindable<bool>)CustomiseButton.Enabled).BindTo(ModSettingsContainer.HasSettingsForSelection);
|
((IBindable<bool>)CustomiseButton.Enabled).BindTo(ModSettingsContainer.HasSettingsForSelection);
|
||||||
|
Loading…
Reference in New Issue
Block a user