From 0956b692d7d61eb76e97c2a0c69cc9c4a9cb5164 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Wed, 11 Sep 2024 06:18:16 -0400 Subject: [PATCH] Add a debug hotkey to set characters as not seen. --- source/funkin/audio/FunkinSound.hx | 2 +- source/funkin/ui/mainmenu/MainMenuState.hx | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/source/funkin/audio/FunkinSound.hx b/source/funkin/audio/FunkinSound.hx index 2f891a1e7..18a0b4da2 100644 --- a/source/funkin/audio/FunkinSound.hx +++ b/source/funkin/audio/FunkinSound.hx @@ -571,7 +571,7 @@ class FunkinSound extends FlxSound implements ICloneable /** * Produces a string representation suitable for debugging. */ - public function toString():String + public override function toString():String { return 'FunkinSound(${this._label})'; } diff --git a/source/funkin/ui/mainmenu/MainMenuState.hx b/source/funkin/ui/mainmenu/MainMenuState.hx index 19dc0d687..4e416abeb 100644 --- a/source/funkin/ui/mainmenu/MainMenuState.hx +++ b/source/funkin/ui/mainmenu/MainMenuState.hx @@ -358,6 +358,7 @@ class MainMenuState extends MusicBeatState // Ctrl+Alt+Shift+W = Meet requirements for Pico Unlock // Ctrl+Alt+Shift+L = Revoke requirements for Pico Unlock // Ctrl+Alt+Shift+R = Score/Rank conflict test + // Ctrl+Alt+Shift+N = Mark all characters as not seen // Ctrl+Alt+Shift+E = Dump save data if (FlxG.keys.pressed.CONTROL && FlxG.keys.pressed.ALT && FlxG.keys.pressed.SHIFT && FlxG.keys.justPressed.P) @@ -433,6 +434,12 @@ class MainMenuState extends MusicBeatState }); } + if (FlxG.keys.pressed.CONTROL && FlxG.keys.pressed.ALT && FlxG.keys.pressed.SHIFT && FlxG.keys.justPressed.N) + { + @:privateAccess + funkin.save.Save.instance.data.unlocks.charactersSeen = ["bf"]; + } + if (FlxG.keys.pressed.CONTROL && FlxG.keys.pressed.ALT && FlxG.keys.pressed.SHIFT && FlxG.keys.justPressed.E) { funkin.save.Save.instance.debug_dumpSave();