read description

- rename tween to playTween
- use the recycle function for positioning in displayRatingNumbers
- add "tween" variable (which is an FlxTween instance, not to be confused with playTween)
- fix returns
This commit is contained in:
sillyborja
2026-06-28 00:20:39 -03:00
parent 45d47677ac
commit 6a63b2ffbb
2 changed files with 24 additions and 13 deletions
@@ -1,6 +1,7 @@
package funkin.backend.scripting.events.gameplay;
import flixel.math.FlxPoint;
import flixel.tweens.FlxTween;
final class RatingsShowEvent extends CancellableEvent
{
@@ -71,7 +72,7 @@ final class RatingsShowEvent extends CancellableEvent
/**
* Whether the sprite should be tweened or not.
*/
public var tween:Bool;
public var playTween:Bool;
/**
* The amount of spacing for the combo numbers. (may be null)
*/
@@ -88,4 +89,8 @@ final class RatingsShowEvent extends CancellableEvent
* The rating name of the rating sprite. (may be null)
*/
public var rating:Null<String>;
/**
* The FlxTween instance. (null before "onPostRatingsShown")
*/
public var tween:Null<FlxTween>;
}