mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 19:32:55 +08:00
Assign to the text property directly
This commit is contained in:
parent
6b7cb46dda
commit
33f4a6897c
@ -226,10 +226,12 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
tick.HasBonusPoints = Progress >= 1 && i > Spinner.SpinsRequired;
|
tick.HasBonusPoints = Progress >= 1 && i > Spinner.SpinsRequired;
|
||||||
|
|
||||||
if (tick.HasBonusPoints)
|
if (tick.HasBonusPoints)
|
||||||
|
{
|
||||||
|
bonusCounter.Text = $"{(i - Spinner.SpinsRequired) * 1000}";
|
||||||
bonusCounter
|
bonusCounter
|
||||||
.TransformTextTo($"{(i - Spinner.SpinsRequired) * 1000}")
|
|
||||||
.FadeOutFromOne(1500)
|
.FadeOutFromOne(1500)
|
||||||
.ScaleTo(1.5f).ScaleTo(1f, 1000, Easing.OutQuint);
|
.ScaleTo(1.5f).ScaleTo(1f, 1000, Easing.OutQuint);
|
||||||
|
}
|
||||||
|
|
||||||
tick.TriggerResult(HitResult.Great);
|
tick.TriggerResult(HitResult.Great);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user