1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Change combo bind logic to be non-weird

This commit is contained in:
Dean Herbert 2021-09-17 19:15:14 +09:00
parent 35c3d75cb8
commit a743a3f306

View File

@ -69,9 +69,11 @@ namespace osu.Game.Rulesets.Mods
public virtual void ApplyToDrawableRuleset(DrawableRuleset<T> drawableRuleset)
{
var flashlight = CreateFlashlight();
flashlight.Combo = Combo;
flashlight.RelativeSizeAxes = Axes.Both;
flashlight.Colour = Color4.Black;
flashlight.Combo.BindTo(Combo);
drawableRuleset.KeyBindingInputManager.Add(flashlight);
flashlight.Breaks = drawableRuleset.Beatmap.Breaks;
@ -81,7 +83,8 @@ namespace osu.Game.Rulesets.Mods
public abstract class Flashlight : Drawable
{
protected internal BindableInt Combo { get; internal set; }
public readonly BindableInt Combo = new BindableInt();
private IShader shader;
protected override DrawNode CreateDrawNode() => new FlashlightDrawNode(this);