mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:12:56 +08:00
Fix distance snap control being removed
This commit is contained in:
parent
b293eb7930
commit
fd6b77ea92
@ -51,6 +51,8 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
|
||||
private readonly Bindable<TernaryState> rectangularGridSnapToggle = new Bindable<TernaryState>();
|
||||
|
||||
protected override Drawable CreateHitObjectInspector() => new OsuHitObjectInspector();
|
||||
|
||||
protected override IEnumerable<TernaryButton> CreateTernaryButtons()
|
||||
=> base.CreateTernaryButtons()
|
||||
.Concat(DistanceSnapProvider.CreateTernaryButtons())
|
||||
@ -101,13 +103,8 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
|
||||
updatePositionSnapGrid();
|
||||
|
||||
RightToolbox.Clear();
|
||||
RightToolbox.AddRange(new[]
|
||||
RightToolbox.AddRange(new Drawable[]
|
||||
{
|
||||
new EditorToolboxGroup("inspector")
|
||||
{
|
||||
Child = new OsuHitObjectInspector(),
|
||||
},
|
||||
OsuGridToolboxGroup,
|
||||
new TransformToolboxGroup
|
||||
{
|
||||
|
@ -207,7 +207,7 @@ namespace osu.Game.Rulesets.Edit
|
||||
{
|
||||
Child = new EditorToolboxGroup("inspector")
|
||||
{
|
||||
Child = new HitObjectInspector()
|
||||
Child = CreateHitObjectInspector()
|
||||
},
|
||||
}
|
||||
}
|
||||
@ -329,6 +329,8 @@ namespace osu.Game.Rulesets.Edit
|
||||
/// </summary>
|
||||
protected virtual ComposeBlueprintContainer CreateBlueprintContainer() => new ComposeBlueprintContainer(this);
|
||||
|
||||
protected virtual Drawable CreateHitObjectInspector() => new HitObjectInspector();
|
||||
|
||||
/// <summary>
|
||||
/// Construct a drawable ruleset for the provided ruleset.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user