Plugin functions


These are the functions that will be called for each plugin, if the function exists.

void Main()

The main entry point. (Yieldable)

void Update(float dt)

Called every frame. dt is the delta time (milliseconds since last frame).

void Render()

Render function called every frame.

void RenderInterface()

Render function called every frame intended for UI.

void RenderMenu()

Render function called every frame intended only for menu items in UI.

void RenderMenuMain()

Render function called every frame intended only for menu items in the main menu of the UI.

bool OnKeyPress(bool down, VirtualKey key)

Called whenever a key is pressed on the keyboard. See the documentation for the VirtualKey enum.

bool OnMouseButton(bool down, int button, int x, int y)

Called whenever a mouse button is pressed.

void OnMouseMove(int x, int y)

Called whenever the mouse moves.

void OnSettingsChanged()

Called when a setting in the settings panel was changed.

void OnSettingsSave(Settings::Section& section)

Called when the settings for the plugin are being saved. See the documentation for Settings::Section.

void OnSettingsLoad(Settings::Section& section)

Called when the settings for the plugin are being loaded. See the documentation for Settings::Section.

void OnLoadCallback(CMwNod@ nod)

void OnSetCurChallenge(CGameCtnChallenge@ challenge)

Called when a new challenge is loaded into the game app, before the decoration has been loaded.

void OnDisabled()

Called when the plugin is getting disabled from the settings.