1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 05:32:55 +08:00

Expose counter to inheritors

This commit is contained in:
ansel 2022-09-10 23:20:28 +03:00
parent 064fe832c7
commit 3f93ec8538

View File

@ -68,6 +68,8 @@ namespace osu.Game.Overlays.Mods
protected override Container<Drawable> Content => content;
protected readonly RollingCounter<double> Counter;
protected ModsEffectDisplay()
{
Height = HEIGHT;
@ -133,7 +135,7 @@ namespace osu.Game.Overlays.Mods
Direction = FillDirection.Horizontal,
Shear = new Vector2(-ShearedOverlayContainer.SHEAR, 0),
Spacing = new Vector2(2, 0),
Child = new EffectCounter(CounterFormat)
Child = Counter = new EffectCounter(CounterFormat)
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,