Skip to content

Solution Lua Interface


registerUiCallback

Register the callback function for UI events

Arguments:
Solution solution Solution object
string eventName event name to register for
string handlerName unique name of the handler used to unregister
function callback Callback function

Example

Solution:.registerUiCallback(solution,eventName,handlerName,callback)


unregisterUiCallback

Unregister the callback function for UI events

Arguments:
Solution solution Solution object
string eventName event name to unregister for
string handlerName handler name given to registerHandler

Example

Solution:.unregisterUiCallback(solution,eventName,handlerName)


unregisterConfigMenu

Unregister the callback function for Config

Arguments:
Solution solution Solution object
string name Config name to unregister for

Example

Solution:.unregisterConfigMenu(solution,name)


registerConfigMenu

Register the callback function for drawing a custom configuration section in the config window

Arguments:
Solution solution Solution object
string name Name of the section
string type Type of the section
string key Module key identifier
function callback Callback function fun(name: string, type: string, key: string)

Example

Solution:.registerConfigMenu(solution,name,type,key,callback)