mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Start to structure flow of information in Player.
- Allow basic clicking of hitobjects. - Break non-osu! game modes temporarily. - Fix some issues with RollingCounters. - Add the ability to increment counters.
This commit is contained in:
@ -45,6 +45,11 @@ namespace osu.Game.Graphics.UserInterface
|
||||
return Math.Abs(currentValue - newValue) * RollingDuration * 100.0f;
|
||||
}
|
||||
|
||||
public override void Increment(float amount)
|
||||
{
|
||||
Count = Count + amount;
|
||||
}
|
||||
|
||||
protected class TransformAccuracy : TransformFloat
|
||||
{
|
||||
public override void Apply(Drawable d)
|
||||
|
@ -86,7 +86,14 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
protected float textSize = 20.0f;
|
||||
public void Set(T value)
|
||||
{
|
||||
Count = value;
|
||||
}
|
||||
|
||||
public abstract void Increment(T amount);
|
||||
|
||||
protected float textSize;
|
||||
|
||||
public float TextSize
|
||||
{
|
||||
@ -107,6 +114,8 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
DisplayedCountSpriteText = new SpriteText(),
|
||||
};
|
||||
|
||||
TextSize = 40;
|
||||
}
|
||||
|
||||
public override void Load(BaseGame game)
|
||||
|
@ -49,6 +49,11 @@ namespace osu.Game.Graphics.UserInterface
|
||||
return count.ToString("D" + LeadingZeroes);
|
||||
}
|
||||
|
||||
public override void Increment(ulong amount)
|
||||
{
|
||||
Count = Count + amount;
|
||||
}
|
||||
|
||||
protected class TransformScore : Transform<ulong>
|
||||
{
|
||||
public override ulong CurrentValue
|
||||
|
Reference in New Issue
Block a user