mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-16 20:01:49 -05:00
Better (but not perfect) results screen text alignment
This commit is contained in:
parent
2051f60991
commit
dae7d71b17
2 changed files with 3 additions and 2 deletions
|
@ -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, _ -> {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue