Callbacks that every state will have (Including ModScriptState & Global Scripts).
- Called when the script is first created.
- Called at the end of the create process.
- Called when the state updates (before everything is updated).
- Called at the end of update (after everything is updated).
- Called when the state is destroyed.
Callbacks that only states & substates will have.
- Called every step in the music (Only called when the music.time is synced with Conductor).
- Called every beat in the music (Only called when the music.time is synced with Conductor).
- Called every section in the music (Only called when the music.time is synced with Conductor).
- Called when the state opens up a substate (use "return Function_Stop;" to prevent!).
- Called when the window is resized while in the state ("w" & "h" being the new width and height).
- Called when the window is focused on while in the state.
- Called when the window has lost focus while in the state.
- Same as `onUpdate`, but when the state draws (use `return Function_Stop;` to prevent!).
- Same as `onUpdatePost`, but when the state draws.
Callbacks that only substates will have.
- Called when the substate is first closed (use `return Function_Stop;` to prevent!).
- Called at the end of the closing process.