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:
parent
35c3d75cb8
commit
a743a3f306
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user