Skip to content

Commit

Permalink
Merge branch 'develop' into fix-opponent-strum-animation
Browse files Browse the repository at this point in the history
  • Loading branch information
lemz1 authored May 29, 2024
2 parents 4884b7b + d02ecd1 commit 28793f3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/funkin/data/song/importer/FNFLegacyImporter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class FNFLegacyImporter

songMetadata.timeChanges = rebuildTimeChanges(songData);

songMetadata.playData.characters = new SongCharacterData(songData?.song?.player1 ?? 'bf', 'gf', songData?.song?.player2 ?? 'dad', 'mom');
songMetadata.playData.characters = new SongCharacterData(songData?.song?.player1 ?? 'bf', 'gf', songData?.song?.player2 ?? 'dad');

return songMetadata;
}
Expand Down
1 change: 0 additions & 1 deletion source/funkin/ui/debug/DebugMenuSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class DebugMenuSubState extends MusicBeatSubState
#if sys
createItem("OPEN CRASH LOG FOLDER", openLogFolder);
#end
FlxG.camera.focusOn(new FlxPoint(camFocusPoint.x, camFocusPoint.y));
FlxG.camera.focusOn(new FlxPoint(camFocusPoint.x, camFocusPoint.y + 500));
}

Expand Down
5 changes: 4 additions & 1 deletion source/funkin/ui/mainmenu/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class MainMenuState extends MusicBeatState
DiscordClient.changePresence("In the Menus", null);
#end

FlxG.cameras.reset(new FunkinCamera('mainMenu'));

transIn = FlxTransitionableState.defaultTransIn;
transOut = FlxTransitionableState.defaultTransOut;

Expand Down Expand Up @@ -170,7 +172,6 @@ class MainMenuState extends MusicBeatState

function resetCamStuff():Void
{
FlxG.cameras.reset(new FunkinCamera('mainMenu'));
FlxG.camera.follow(camFollow, null, 0.06);
FlxG.camera.snapToTarget();
}
Expand Down Expand Up @@ -329,6 +330,8 @@ class MainMenuState extends MusicBeatState
persistentUpdate = false;

FlxG.state.openSubState(new DebugMenuSubState());
// reset camera when debug menu is closed
subStateClosed.addOnce(_ -> resetCamStuff());
}
#end

Expand Down
3 changes: 3 additions & 0 deletions source/funkin/ui/story/StoryMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ class StoryMenuState extends MusicBeatState
// Disable the funny music thing for now.
// funnyMusicThing();
}

updateText();
refresh();
}

final FADE_OUT_TIME:Float = 1.5;
Expand Down

0 comments on commit 28793f3

Please sign in to comment.