Closed ZSolarDev closed 1 year ago
add some code to switch to the state
First you need add this in "clientPrefs.hx" after debug_2
'debug_3' => [SIX, NONE]
(you can change the six for something else if you want
now you need add this in "controlsSubstate.hx" (optional) after ['Key 2', 'debug_2']
['Key 3', 'debug_3']
add this code in "Playstate.hx "to make the editor work (in Update function under the chart editor)
private var debugKeysModchart:Array<FlxKey>; //add this after the debugKeysCharacter but before KeysArray
debugKeysModchart = ClientPrefs.copyKey(ClientPrefs.keyBinds.get('debug_3')); // add this onCreate after the debugKeysCharacter and before pauseSubstate
if (FlxG.keys.anyJustPressed(debugKeysModchart) && !endingSong && !inCutscene)
{
persistentUpdate = false;
paused = true;
cancelMusicFadeTween();
MusicBeatState.switchState(new modcharting.ModchartEditorState());
chartingMode = true;
#if desktop
DiscordClient.changePresence("Modchart Editor", null, null, true);
#end
}
if your game compiles you are good to go
thank you!
I forgot to close this