mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 13:30:57 +08:00
Make counters work again
This commit is contained in:
@@ -32,15 +32,12 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
public override void Load(BaseGame game)
|
||||
protected NumericRollingCounter() : base()
|
||||
{
|
||||
base.Load(game);
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
countSpriteText = new SpriteText
|
||||
{
|
||||
Text = formatCount(Count),
|
||||
TextSize = this.TextSize,
|
||||
Anchor = this.Anchor,
|
||||
Origin = this.Origin,
|
||||
@@ -48,6 +45,14 @@ namespace osu.Game.Graphics.UserInterface
|
||||
};
|
||||
}
|
||||
|
||||
public override void Load(BaseGame game)
|
||||
{
|
||||
base.Load(game);
|
||||
countSpriteText.Text = formatCount(count);
|
||||
countSpriteText.Anchor = this.Anchor;
|
||||
countSpriteText.Origin = this.Origin;
|
||||
}
|
||||
|
||||
protected override void transformVisibleCount(T currentValue, T newValue)
|
||||
{
|
||||
if (countSpriteText != null)
|
||||
|
||||
Reference in New Issue
Block a user