mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Leading zeroes now part of ScoreCounter ctor
This commit is contained in:
@ -13,13 +13,22 @@ namespace osu.Game.Graphics.UserInterface
|
||||
public class ScoreCounter : ULongCounter
|
||||
{
|
||||
/// <summary>
|
||||
/// How many leading zeroes the counter will have.
|
||||
/// How many leading zeroes the counter has.
|
||||
/// </summary>
|
||||
public uint LeadingZeroes = 0;
|
||||
|
||||
public ScoreCounter() : base()
|
||||
public uint LeadingZeroes
|
||||
{
|
||||
countSpriteText.FixedWidth = true;
|
||||
get;
|
||||
protected set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Displays score.
|
||||
/// </summary>
|
||||
/// <param name="leading">How many leading zeroes the counter will have.</param>
|
||||
public ScoreCounter(uint leading = 0) : base()
|
||||
{
|
||||
countSpriteText.FixedWidth = true;
|
||||
LeadingZeroes = leading;
|
||||
}
|
||||
|
||||
public override void Load(BaseGame game)
|
||||
|
Reference in New Issue
Block a user