From 8525cfaf21109adb111eb6668a290137fd2ded88 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sat, 12 Aug 2023 00:42:17 -0400 Subject: [PATCH] cute text popin --- source/funkin/freeplayStuff/SongMenuItem.hx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/funkin/freeplayStuff/SongMenuItem.hx b/source/funkin/freeplayStuff/SongMenuItem.hx index a28ea1d9f..be663af74 100644 --- a/source/funkin/freeplayStuff/SongMenuItem.hx +++ b/source/funkin/freeplayStuff/SongMenuItem.hx @@ -107,12 +107,29 @@ class SongMenuItem extends FlxSpriteGroup selected = selected; // just to kickstart the set_selected } + function textAppear() + { + songText.scale.x = 1.7; + songText.scale.y = 0.2; + + new FlxTimer().start(1 / 24, function(_) { + songText.scale.x = 0.4; + songText.scale.y = 1.4; + }); + + new FlxTimer().start(2 / 24, function(_) { + songText.scale.x = songText.scale.y = 1; + }); + } + function setVisibleGrp(value:Bool) { for (spr in grpHide.members) { spr.visible = value; } + + if (value) textAppear(); } public function init(x:Float, y:Float, song:String, ?character:String)