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 @@ protected override IEnumerable<TernaryButton> CreateTernaryButtons() => base.Cre
[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 @@ private void load()
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()