mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 11:43:01 +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);
|
protected override Type TransformType => typeof(TransformComboResult);
|
||||||
|
|
||||||
public override double RollingDuration => 500;
|
protected override double RollingDuration => 500;
|
||||||
public override EasingTypes RollingEasing => EasingTypes.Out;
|
protected override EasingTypes RollingEasing => EasingTypes.Out;
|
||||||
|
|
||||||
protected override double GetProportionalDuration(ulong currentValue, ulong newValue)
|
protected override double GetProportionalDuration(ulong currentValue, ulong newValue)
|
||||||
{
|
{
|
||||||
|
@ -20,8 +20,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
protected override Type TransformType => typeof(TransformAccuracy);
|
protected override Type TransformType => typeof(TransformAccuracy);
|
||||||
|
|
||||||
public override double RollingDuration => 500;
|
protected override double RollingDuration => 20;
|
||||||
public override EasingTypes RollingEasing => EasingTypes.Out;
|
protected override bool IsRollingProportional => true;
|
||||||
|
|
||||||
private float epsilon => 1e-10f;
|
private float epsilon => 1e-10f;
|
||||||
|
|
||||||
|
@ -30,18 +30,18 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// If true, the roll-up duration will be proportional to change in value.
|
/// If true, the roll-up duration will be proportional to change in value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsRollingProportional = false;
|
protected virtual bool IsRollingProportional => false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If IsRollingProportional = false, duration in milliseconds for the counter roll-up animation for each
|
/// 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.
|
/// element; else duration in milliseconds for the counter roll-up animation in total.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual double RollingDuration => 0;
|
protected virtual double RollingDuration => 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Easing for the counter rollover animation.
|
/// Easing for the counter rollover animation.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual EasingTypes RollingEasing => EasingTypes.None;
|
protected virtual EasingTypes RollingEasing => EasingTypes.None;
|
||||||
|
|
||||||
private T displayedCount;
|
private T displayedCount;
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
protected override Type TransformType => typeof(TransformScore);
|
protected override Type TransformType => typeof(TransformScore);
|
||||||
|
|
||||||
public override double RollingDuration => 1000;
|
protected override double RollingDuration => 1000;
|
||||||
public override EasingTypes RollingEasing => EasingTypes.Out;
|
protected override EasingTypes RollingEasing => EasingTypes.Out;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// How many leading zeroes the counter has.
|
/// How many leading zeroes the counter has.
|
||||||
|
Loading…
Reference in New Issue
Block a user