Allow BlueprintContainer to specify toggles

This commit is contained in:
Dean Herbert 2020-09-25 14:09:31 +09:00
parent 3c191cfe25
commit bca774a0d4
2 changed files with 3 additions and 3 deletions

View File

@ -41,10 +41,10 @@ protected override DrawableRuleset<OsuHitObject> CreateDrawableRuleset(Ruleset r
private readonly BindableBool distanceSnapToggle = new BindableBool(true) { Description = "Distance Snap" };
protected override IEnumerable<BindableBool> Toggles => new[]
protected override IEnumerable<Bindable<bool>> Toggles => base.Toggles.Concat(new[]
{
distanceSnapToggle
};
});
private BindableList<HitObject> selectedHitObjects;

View File

@ -170,7 +170,7 @@ protected override void LoadComplete()
/// A collection of toggles which will be displayed to the user.
/// The display name will be decided by <see cref="Bindable{T}.Description"/>.
/// </summary>
protected virtual IEnumerable<BindableBool> Toggles => Enumerable.Empty<BindableBool>();
protected virtual IEnumerable<Bindable<bool>> Toggles => BlueprintContainer.Toggles;
/// <summary>
/// Construct a relevant blueprint container. This will manage hitobject selection/placement input handling and display logic.