File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
source/funkin/ui/debug/anim Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,16 @@ class DebugBoundingState extends FlxState
347
347
348
348
function offsetControls (): Void
349
349
{
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
+
350
360
if (FlxG .keys .justPressed .RBRACKET || FlxG .keys .justPressed .E )
351
361
{
352
362
if (offsetAnimationDropdown .selectedIndex + 1 <= offsetAnimationDropdown .dataSource .size )
@@ -457,12 +467,6 @@ class DebugBoundingState extends FlxState
457
467
458
468
trace (animName );
459
469
}
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
- }
466
470
}
467
471
468
472
function buildOutputStringOld (): String
You can’t perform that action at this time.
0 commit comments