Skip to content

Commit 80378be

Browse files
VioletSnowLeopardHundrec
authored andcommitted
change save shortcuts to CTRL+S and CTRL+SHIFT+S
1 parent 146a6cd commit 80378be

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

source/funkin/ui/debug/anim/DebugBoundingState.hx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,16 @@ class DebugBoundingState extends FlxState
347347

348348
function offsetControls():Void
349349
{
350+
// CTRL + S = Save Character Data
351+
// CTRL + SHIFT + S = Save Offsets
352+
// "WINDOWS" key code is the same keycode as COMMAND on mac
353+
if ((FlxG.keys.pressed.CONTROL || FlxG.keys.pressed.WINDOWS) && FlxG.keys.justPressed.S)
354+
{
355+
var outputString = FlxG.keys.pressed.SHIFT ? buildOutputStringOld() : buildOutputStringNew();
356+
saveOffsets(outputString, FlxG.keys.pressed.SHIFT ? swagChar.characterId + "Offsets.txt" : swagChar.characterId + ".json");
357+
return;
358+
}
359+
350360
if (FlxG.keys.justPressed.RBRACKET || FlxG.keys.justPressed.E)
351361
{
352362
if (offsetAnimationDropdown.selectedIndex + 1 <= offsetAnimationDropdown.dataSource.size)
@@ -457,12 +467,6 @@ class DebugBoundingState extends FlxState
457467

458468
trace(animName);
459469
}
460-
461-
if (FlxG.keys.justPressed.ESCAPE)
462-
{
463-
var outputString = FlxG.keys.pressed.CONTROL ? buildOutputStringOld() : buildOutputStringNew();
464-
saveOffsets(outputString, FlxG.keys.pressed.CONTROL ? swagChar.characterId + "Offsets.txt" : swagChar.characterId + ".json");
465-
}
466470
}
467471

468472
function buildOutputStringOld():String

0 commit comments

Comments
 (0)