mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 09:03:00 +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;
|
||||
|
||||
if (tick.HasBonusPoints)
|
||||
{
|
||||
bonusCounter.Text = $"{(i - Spinner.SpinsRequired) * 1000}";
|
||||
bonusCounter
|
||||
.TransformTextTo($"{(i - Spinner.SpinsRequired) * 1000}")
|
||||
.FadeOutFromOne(1500)
|
||||
.ScaleTo(1.5f).ScaleTo(1f, 1000, Easing.OutQuint);
|
||||
}
|
||||
|
||||
tick.TriggerResult(HitResult.Great);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user