You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FINALLY fixed the issue with GlobalState blowing up when pressing F5. (#666)
* peak is happening
<r>RED<r>
* oops
* oops x2
forgot I left a trace when loading up global.hx from `Assets` lol
* **State / SubState reloading broken rn but pushing changes to see if anyone can fix**
* Human... I remember you
<r>disabling reloading substates cuz it broke...<r>
* <y>forgor to edit assets global.hx<y>
* lemme see
* kk
* opa
---------
Co-authored-by: ⍚~Nex <87421482+NexIsDumb@users.noreply.github.com>
varresetKey=FlxG.keys.justPressed.F5; // we default the key to F5, but really this shouldn't matter, as every state will be at minimum a MusicBeatState.
79
+
if ((FlxG.stateisMusicBeatState)) resetKey=cast(FlxG.state, MusicBeatState).controls.DEBUG_RELOAD;
80
+
81
+
// If we want, we could just make reseting GlobalScript it's own keybind, but for now this works.
82
+
if (resetKey) {
83
+
reloading=true;
84
+
Logs.trace("Reloading Global Scripts...", INFO, YELLOW);
85
+
86
+
// yeah its a bit messy, sorry. This just prevents actually reloading the actual state.
0 commit comments