1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Move editor playfield border locally to osu! composer

This commit is contained in:
Bartłomiej Dach 2020-10-19 21:20:13 +02:00
parent bca0539735
commit 7c388f1132
2 changed files with 6 additions and 5 deletions

View File

@ -56,6 +56,11 @@ namespace osu.Game.Rulesets.Osu.Edit
[BackgroundDependencyLoader]
private void load()
{
LayerBelowRuleset.Add(new PlayfieldBorder
{
RelativeSizeAxes = Axes.Both,
State = { Value = Visibility.Visible }
});
LayerBelowRuleset.Add(distanceSnapGridContainer = new Container { RelativeSizeAxes = Axes.Both });
selectedHitObjects = EditorBeatmap.SelectedHitObjects.GetBoundCopy();

View File

@ -100,11 +100,7 @@ namespace osu.Game.Rulesets.Edit
Children = new Drawable[]
{
// layers below playfield
drawableRulesetWrapper.CreatePlayfieldAdjustmentContainer().WithChildren(new Drawable[]
{
LayerBelowRuleset,
new PlayfieldBorder { RelativeSizeAxes = Axes.Both }
}),
drawableRulesetWrapper.CreatePlayfieldAdjustmentContainer().WithChild(LayerBelowRuleset),
drawableRulesetWrapper,
// layers above playfield
drawableRulesetWrapper.CreatePlayfieldAdjustmentContainer()