event.gui
Methods7
function Gui.on_click(gui_element_pattern: string, handler: function) -> StdLib.Event.Gui
Registers a function for a given gui element name or pattern when the element is clicked.
gui_element_patternstringthe name or string regular expression to match the gui element
handlerfunctionthe function to call when gui element is clicked
function Gui.on_checked_state_changed(gui_element_pattern: string, handler: function) -> StdLib.Event.Gui
Registers a function for a given GUI element name or pattern when the element checked state changes.
gui_element_patternstringthe name or string regular expression to match the GUI element
handlerfunctionthe function to call when GUI element checked state changes
function Gui.on_text_changed(gui_element_pattern: string, handler: function) -> StdLib.Event.Gui
Registers a function for a given GUI element name or pattern when the element text changes.
gui_element_patternstringthe name or string regular expression to match the GUI element
handlerfunctionthe function to call when GUI element text changes
function Gui.on_elem_changed(gui_element_pattern: string, handler: function) -> StdLib.Event.Gui
Registers a function for a given GUI element name or pattern when the element selection changes.
gui_element_patternstringthe name or string regular expression to match the GUI element
handlerfunctionthe function to call when GUI element selection changes
function Gui.on_selection_state_changed(gui_element_pattern: string, handler: function) -> StdLib.Event.Gui
Registers a function for a given GUI element name or pattern when the element state changes (drop down).
gui_element_patternstringthe name or string regular expression to match the GUI element
handlerfunctionthe function to call when GUI element state changes
function Gui.on_value_changed(gui_element_pattern: string, handler: function) -> StdLib.Event.Gui
Registers a function for a given GUI element name or pattern when the element value changes (slider).
gui_element_patternstringthe name or string regular expression to match the GUI element
handlerfunctionthe function to call when GUI element state changes
function Gui.on_confirmed(gui_element_pattern: string, handler: function) -> StdLib.Event.Gui
Registers a function for a given GUI element name or pattern when the element is confirmed.
gui_element_patternstringthe name or string regular expression to match the GUI element
handlerfunctionthe function to call when GUI element state changes
Fields2
Gui.__class: string = "Gui"
Gui.__index : unknown