mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Fix "bubbles" mod not adding pool to hierarchy (and constructing too early)
This commit is contained in:
parent
8063d50369
commit
a5fd833214
@ -42,14 +42,14 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
private PlayfieldAdjustmentContainer bubbleContainer = null!;
|
private PlayfieldAdjustmentContainer bubbleContainer = null!;
|
||||||
|
|
||||||
|
private DrawablePool<BubbleDrawable> bubblePool = null!;
|
||||||
|
|
||||||
private readonly Bindable<int> currentCombo = new BindableInt();
|
private readonly Bindable<int> currentCombo = new BindableInt();
|
||||||
|
|
||||||
private float maxSize;
|
private float maxSize;
|
||||||
private float bubbleSize;
|
private float bubbleSize;
|
||||||
private double bubbleFade;
|
private double bubbleFade;
|
||||||
|
|
||||||
private readonly DrawablePool<BubbleDrawable> bubblePool = new DrawablePool<BubbleDrawable>(100);
|
|
||||||
|
|
||||||
public ScoreRank AdjustRank(ScoreRank rank, double accuracy) => rank;
|
public ScoreRank AdjustRank(ScoreRank rank, double accuracy) => rank;
|
||||||
|
|
||||||
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
||||||
@ -72,6 +72,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
bubbleContainer = drawableRuleset.CreatePlayfieldAdjustmentContainer();
|
bubbleContainer = drawableRuleset.CreatePlayfieldAdjustmentContainer();
|
||||||
|
|
||||||
drawableRuleset.Overlays.Add(bubbleContainer);
|
drawableRuleset.Overlays.Add(bubbleContainer);
|
||||||
|
drawableRuleset.Overlays.Add(bubblePool = new DrawablePool<BubbleDrawable>(100));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ApplyToDrawableHitObject(DrawableHitObject drawableObject)
|
public void ApplyToDrawableHitObject(DrawableHitObject drawableObject)
|
||||||
|
Loading…
Reference in New Issue
Block a user