TheZoroForce240 / FNF-Modcharting-Tools

Apache License 2.0
51 stars 23 forks source link

How to open the "ModchartEditorState"? (not really an issue) #29

Closed ZSolarDev closed 1 year ago

ZSolarDev commented 1 year ago
  1. sorry for opening all of these issues. 2. can I open this state? it seems helpful
Vortex2Oblivion commented 1 year ago

add some code to switch to the state

EdwhakKB commented 1 year ago

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

ZSolarDev commented 1 year ago

thank you!

ZSolarDev commented 1 year ago

I forgot to close this