mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
More styling.
This commit is contained in:
@ -102,6 +102,7 @@ namespace osu.Desktop.Tests
|
|||||||
ac.Count = 0;
|
ac.Count = 0;
|
||||||
cc.Count = 0;
|
cc.Count = 0;
|
||||||
pc.SetCount(0, 0);
|
pc.SetCount(0, 0);
|
||||||
|
tc.Count = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
AddButton(@"Hit! :D", delegate
|
AddButton(@"Hit! :D", delegate
|
||||||
|
@ -33,7 +33,6 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
public override void Load()
|
public override void Load()
|
||||||
{
|
{
|
||||||
|
|
||||||
base.Load();
|
base.Load();
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
@ -16,6 +16,12 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public uint LeadingZeroes = 0;
|
public uint LeadingZeroes = 0;
|
||||||
|
|
||||||
|
public override void Load()
|
||||||
|
{
|
||||||
|
base.Load();
|
||||||
|
countSpriteText.FixedWidth = true;
|
||||||
|
}
|
||||||
|
|
||||||
protected override string formatCount(ulong count)
|
protected override string formatCount(ulong count)
|
||||||
{
|
{
|
||||||
return count.ToString("D" + LeadingZeroes);
|
return count.ToString("D" + LeadingZeroes);
|
||||||
|
@ -33,12 +33,13 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
public int StarSize = 20;
|
public int StarSize = 20;
|
||||||
|
|
||||||
public int StarSpacing = 2;
|
public int StarSpacing = 4;
|
||||||
|
|
||||||
public StarCounter() : base()
|
public StarCounter() : base()
|
||||||
{
|
{
|
||||||
IsRollingProportional = true;
|
IsRollingProportional = true;
|
||||||
RollingDuration = 100;
|
RollingDuration = 150;
|
||||||
|
RollingEasing = EasingTypes.Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override ulong getProportionalDuration(float currentValue, float newValue)
|
protected override ulong getProportionalDuration(float currentValue, float newValue)
|
||||||
|
Reference in New Issue
Block a user