More styling.

This commit is contained in:
Adonais Romero González
2016-10-08 21:58:53 -05:00
parent 0d18680eeb
commit accf365fd1
4 changed files with 10 additions and 3 deletions

View File

@ -102,6 +102,7 @@ namespace osu.Desktop.Tests
ac.Count = 0;
cc.Count = 0;
pc.SetCount(0, 0);
tc.Count = 0;
});
AddButton(@"Hit! :D", delegate

View File

@ -33,7 +33,6 @@ namespace osu.Game.Graphics.UserInterface
public override void Load()
{
base.Load();
Children = new Drawable[]
{

View File

@ -16,6 +16,12 @@ namespace osu.Game.Graphics.UserInterface
/// </summary>
public uint LeadingZeroes = 0;
public override void Load()
{
base.Load();
countSpriteText.FixedWidth = true;
}
protected override string formatCount(ulong count)
{
return count.ToString("D" + LeadingZeroes);

View File

@ -33,12 +33,13 @@ namespace osu.Game.Graphics.UserInterface
public int StarSize = 20;
public int StarSpacing = 2;
public int StarSpacing = 4;
public StarCounter() : base()
{
IsRollingProportional = true;
RollingDuration = 100;
RollingDuration = 150;
RollingEasing = EasingTypes.Out;
}
protected override ulong getProportionalDuration(float currentValue, float newValue)