i think this will be confusing but ok

This commit is contained in:
sillyborja
2026-06-28 00:50:21 -03:00
parent 6a63b2ffbb
commit 5a8c834220
2 changed files with 8 additions and 8 deletions
@@ -72,7 +72,7 @@ final class RatingsShowEvent extends CancellableEvent
/**
* Whether the sprite should be tweened or not.
*/
public var playTween:Bool;
public var tween:Bool;
/**
* The amount of spacing for the combo numbers. (may be null)
*/
@@ -92,5 +92,5 @@ final class RatingsShowEvent extends CancellableEvent
/**
* The FlxTween instance. (null before "onPostRatingsShown")
*/
public var tween:Null<FlxTween>;
public var tweenInstance:Null<FlxTween>;
}
+6 -6
View File
@@ -2059,8 +2059,8 @@ class PlayState extends MusicBeatState
rating.antialiasing = hasEvent && evt.ratingAntialiasing != null ? evt.ratingAntialiasing : event.ratingAntialiasing;
rating.updateHitbox();
if (event.playTween) {
event.tween = FlxTween.tween(rating, {alpha: 0}, event.tweenDuration, {
if (event.tween) {
event.tweenInstance = FlxTween.tween(rating, {alpha: 0}, event.tweenDuration, {
startDelay: event.startDelay,
onComplete: function(tween:FlxTween) {
rating.kill();
@@ -2101,8 +2101,8 @@ class PlayState extends MusicBeatState
comboSpr.antialiasing = hasEvent && evt.ratingAntialiasing != null ? evt.ratingAntialiasing : event.ratingAntialiasing;
comboSpr.updateHitbox();
if (event.playTween) {
event.tween = FlxTween.tween(comboSpr, {alpha: 0}, event.tweenDuration, {
if (event.tween) {
event.tweenInstance = FlxTween.tween(comboSpr, {alpha: 0}, event.tweenDuration, {
onComplete: function(tween:FlxTween) {
comboSpr.kill();
},
@@ -2149,8 +2149,8 @@ class PlayState extends MusicBeatState
numScore.velocity.y -= event.velocity.y;
numScore.velocity.x = event.velocity.x;
if (event.playTween) {
event.tween = FlxTween.tween(numScore, {alpha: 0}, event.tweenDuration, {
if (event.tween) {
event.tweenInstance = FlxTween.tween(numScore, {alpha: 0}, event.tweenDuration, {
onComplete: function(tween:FlxTween) {
numScore.kill();
},