1
0
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:
Adonais Romero González
2016-10-12 14:33:04 -05:00
Unverified
parent 8dadc2b215
commit 798e7241d8
4 changed files with 19 additions and 11 deletions
@@ -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)