1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Fixed issues caused by branch being stale

This commit is contained in:
OpenSauce04 2023-02-27 13:40:55 +00:00
parent f2cada4584
commit 12b983495c
2 changed files with 6 additions and 4 deletions

View File

@ -27,7 +27,7 @@ namespace osu.Game.Rulesets.Taiko.Mods
private const double flash_duration = 1000;
private DrawableRuleset<TaikoHitObject> ruleset = null!;
private DrawableTaikoRuleset ruleset = null!;
private TaikoPlayfield playfield { get; set; } = null!;
@ -46,9 +46,9 @@ namespace osu.Game.Rulesets.Taiko.Mods
public void ApplyToDrawableRuleset(DrawableRuleset<TaikoHitObject> drawableRuleset)
{
ruleset = drawableRuleset;
ruleset = (DrawableTaikoRuleset)drawableRuleset;
ruleset.InputManager.Add(new InputInterceptor(this));
playfield = (TaikoPlayfield)ruleset.Playfield;
drawableRuleset.KeyBindingInputManager.Add(new InputInterceptor(this));
var periods = new List<Period>();

View File

@ -33,6 +33,8 @@ namespace osu.Game.Rulesets.Taiko.UI
public readonly BindableBool LockPlayfieldMaxAspect = new BindableBool(true);
public TaikoInputManager InputManager { get; private set; }
protected override ScrollVisualisationMethod VisualisationMethod => ScrollVisualisationMethod.Overlapping;
protected override bool UserScrollSpeedAdjustment => false;
@ -93,7 +95,7 @@ namespace osu.Game.Rulesets.Taiko.UI
LockPlayfieldMaxAspect = { BindTarget = LockPlayfieldMaxAspect }
};
protected override PassThroughInputManager CreateInputManager() => new TaikoInputManager(Ruleset.RulesetInfo);
protected override PassThroughInputManager CreateInputManager() => InputManager = new TaikoInputManager(Ruleset.RulesetInfo);
protected override Playfield CreatePlayfield() => new TaikoPlayfield();