Better (but not perfect) results screen text alignment

This commit is contained in:
EliteMasterEric 2024-04-30 13:34:34 -04:00
parent 2051f60991
commit dae7d71b17
2 changed files with 3 additions and 2 deletions

View File

@ -324,7 +324,8 @@ class ResultState extends MusicBeatSubState
FlxTween.tween(difficulty, {y: diffYTween}, 0.5, {ease: FlxEase.expoOut, startDelay: 0.8});
songName.y = -songName.height;
FlxTween.tween(songName, {y: diffYTween - 35}, 0.5, {ease: FlxEase.expoOut, startDelay: 0.9});
var fuckedupnumber = (10) * (songName.text.length / 15);
FlxTween.tween(songName, {y: diffYTween - 35 - fuckedupnumber}, 0.5, {ease: FlxEase.expoOut, startDelay: 0.9});
songName.x = (difficulty.x + difficulty.width) + 20;
new FlxTimer().start(3, _ -> {

View File

@ -360,7 +360,7 @@ class MainMenuState extends MusicBeatState
}
#end
if (FlxG.sound.music.volume < 0.8)
if (FlxG.sound.music != null && FlxG.sound.music.volume < 0.8)
{
FlxG.sound.music.volume += 0.5 * elapsed;
}