mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 08:23:20 +08:00
Expose counter to inheritors
This commit is contained in:
parent
064fe832c7
commit
3f93ec8538
@ -68,6 +68,8 @@ namespace osu.Game.Overlays.Mods
|
|||||||
|
|
||||||
protected override Container<Drawable> Content => content;
|
protected override Container<Drawable> Content => content;
|
||||||
|
|
||||||
|
protected readonly RollingCounter<double> Counter;
|
||||||
|
|
||||||
protected ModsEffectDisplay()
|
protected ModsEffectDisplay()
|
||||||
{
|
{
|
||||||
Height = HEIGHT;
|
Height = HEIGHT;
|
||||||
@ -133,7 +135,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
Direction = FillDirection.Horizontal,
|
Direction = FillDirection.Horizontal,
|
||||||
Shear = new Vector2(-ShearedOverlayContainer.SHEAR, 0),
|
Shear = new Vector2(-ShearedOverlayContainer.SHEAR, 0),
|
||||||
Spacing = new Vector2(2, 0),
|
Spacing = new Vector2(2, 0),
|
||||||
Child = new EffectCounter(CounterFormat)
|
Child = Counter = new EffectCounter(CounterFormat)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
|
Loading…
Reference in New Issue
Block a user