Add some simple border styles

This commit is contained in:
Dean Herbert
2020-10-20 13:59:03 +09:00
parent 7c388f1132
commit 267b399f9f
6 changed files with 156 additions and 27 deletions

View File

@ -56,12 +56,18 @@ namespace osu.Game.Rulesets.Osu.Edit
[BackgroundDependencyLoader]
private void load()
{
LayerBelowRuleset.Add(new PlayfieldBorder
LayerBelowRuleset.AddRange(new Drawable[]
{
RelativeSizeAxes = Axes.Both,
State = { Value = Visibility.Visible }
new PlayfieldBorder
{
RelativeSizeAxes = Axes.Both,
PlayfieldBorderStyle = { Value = PlayfieldBorderStyle.Corners }
},
distanceSnapGridContainer = new Container
{
RelativeSizeAxes = Axes.Both
}
});
LayerBelowRuleset.Add(distanceSnapGridContainer = new Container { RelativeSizeAxes = Axes.Both });
selectedHitObjects = EditorBeatmap.SelectedHitObjects.GetBoundCopy();
selectedHitObjects.CollectionChanged += (_, __) => updateDistanceSnapGrid();