mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 06:12:56 +08:00
Protect RollingCounter props
This commit is contained in:
parent
5abc3ba898
commit
eeacd85073
@ -21,8 +21,8 @@ namespace osu.Game.GameModes.Play
|
||||
{
|
||||
protected override Type TransformType => typeof(TransformComboResult);
|
||||
|
||||
public override double RollingDuration => 500;
|
||||
public override EasingTypes RollingEasing => EasingTypes.Out;
|
||||
protected override double RollingDuration => 500;
|
||||
protected override EasingTypes RollingEasing => EasingTypes.Out;
|
||||
|
||||
protected override double GetProportionalDuration(ulong currentValue, ulong newValue)
|
||||
{
|
||||
|
@ -20,8 +20,8 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
protected override Type TransformType => typeof(TransformAccuracy);
|
||||
|
||||
public override double RollingDuration => 500;
|
||||
public override EasingTypes RollingEasing => EasingTypes.Out;
|
||||
protected override double RollingDuration => 20;
|
||||
protected override bool IsRollingProportional => true;
|
||||
|
||||
private float epsilon => 1e-10f;
|
||||
|
||||
|
@ -30,18 +30,18 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// If true, the roll-up duration will be proportional to change in value.
|
||||
/// </summary>
|
||||
public bool IsRollingProportional = false;
|
||||
protected virtual bool IsRollingProportional => false;
|
||||
|
||||
/// <summary>
|
||||
/// If IsRollingProportional = false, duration in milliseconds for the counter roll-up animation for each
|
||||
/// element; else duration in milliseconds for the counter roll-up animation in total.
|
||||
/// </summary>
|
||||
public virtual double RollingDuration => 0;
|
||||
protected virtual double RollingDuration => 0;
|
||||
|
||||
/// <summary>
|
||||
/// Easing for the counter rollover animation.
|
||||
/// </summary>
|
||||
public virtual EasingTypes RollingEasing => EasingTypes.None;
|
||||
protected virtual EasingTypes RollingEasing => EasingTypes.None;
|
||||
|
||||
private T displayedCount;
|
||||
|
||||
|
@ -17,8 +17,8 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
protected override Type TransformType => typeof(TransformScore);
|
||||
|
||||
public override double RollingDuration => 1000;
|
||||
public override EasingTypes RollingEasing => EasingTypes.Out;
|
||||
protected override double RollingDuration => 1000;
|
||||
protected override EasingTypes RollingEasing => EasingTypes.Out;
|
||||
|
||||
/// <summary>
|
||||
/// How many leading zeroes the counter has.
|
||||
|
Loading…
Reference in New Issue
Block a user