From 5be5abf4c92003b40e674d81fffa301614b3aebd Mon Sep 17 00:00:00 2001 From: MAJigsaw77 <77043862+MAJigsaw77@users.noreply.github.com> Date: Thu, 26 Jun 2025 10:35:17 +0300 Subject: [PATCH] chore: fix multiple warnings. --- source/funkin/input/Controls.hx | 3 +-- .../toolboxes/StageEditorObjectGraphicToolbox.hx | 6 ++++-- source/funkin/ui/freeplay/FreeplayState.hx | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/source/funkin/input/Controls.hx b/source/funkin/input/Controls.hx index 2d7a2a568..fff31206d 100644 --- a/source/funkin/input/Controls.hx +++ b/source/funkin/input/Controls.hx @@ -484,8 +484,7 @@ class Controls extends FlxActionSet static function init():Void { - var actions = new FlxActionManager(); - FlxG.inputs.add(actions); + FlxG.inputs.addUniqueType(new FlxActionManager()); } /** diff --git a/source/funkin/ui/debug/stageeditor/toolboxes/StageEditorObjectGraphicToolbox.hx b/source/funkin/ui/debug/stageeditor/toolboxes/StageEditorObjectGraphicToolbox.hx index 01e007527..e3eb32570 100644 --- a/source/funkin/ui/debug/stageeditor/toolboxes/StageEditorObjectGraphicToolbox.hx +++ b/source/funkin/ui/debug/stageeditor/toolboxes/StageEditorObjectGraphicToolbox.hx @@ -137,7 +137,9 @@ class StageEditorObjectGraphicToolbox extends StageEditorDefaultToolbox // Set the names of the frames. for (i in 0...linkedObj.frames.frames.length) { - linkedObj.frames.framesHash.set('Frame$i', linkedObj.frames.frames[i]); + @:privateAccess + linkedObj.frames.framesByName.set('Frame$i', linkedObj.frames.frames[i]); + linkedObj.frames.frames[i].name = 'Frame$i'; } @@ -146,7 +148,7 @@ class StageEditorObjectGraphicToolbox extends StageEditorDefaultToolbox stageEditorState.updateDialog(OBJECT_ANIMS); } - + this.onDialogClosed = onClose; } diff --git a/source/funkin/ui/freeplay/FreeplayState.hx b/source/funkin/ui/freeplay/FreeplayState.hx index f10ac86e2..9f856e398 100644 --- a/source/funkin/ui/freeplay/FreeplayState.hx +++ b/source/funkin/ui/freeplay/FreeplayState.hx @@ -1329,7 +1329,7 @@ class FreeplayState extends MusicBeatSubState fadeShader.fade(1.0, 0.0, 0.8, {ease: FlxEase.quadIn}); FlxG.sound.music?.fadeOut(0.9, 0); new FlxTimer().start(0.9, _ -> { - FlxG.switchState(new funkin.ui.charSelect.CharSelectSubState({character: currentCharacterId} // Passing the currrent Freeplay character to the CharSelect so we can start it with that character selected + FlxG.switchState(() -> new funkin.ui.charSelect.CharSelectSubState({character: currentCharacterId} // Passing the currrent Freeplay character to the CharSelect so we can start it with that character selected )); }); for (grpSpr in exitMoversCharSel.keys())