Makes monolithic Factorio GUI events more manageable.
local Gui = require('__stdlib__/stdlib/event/gui')
| on_click(gui_element_pattern, handler) | Registers a function for a given gui element name or pattern when the element is clicked. |
| on_checked_state_changed(gui_element_pattern, handler) | Registers a function for a given GUI element name or pattern when the element checked state changes. |
| on_text_changed(gui_element_pattern, handler) | Registers a function for a given GUI element name or pattern when the element text changes. |
| on_elem_changed(gui_element_pattern, handler) | Registers a function for a given GUI element name or pattern when the element selection changes. |
| on_selection_state_changed(gui_element_pattern, handler) | Registers a function for a given GUI element name or pattern when the element state changes (drop down). |
| on_value_changed(gui_element_pattern, handler) | Registers a function for a given GUI element name or pattern when the element value changes (slider). |
| on_confirmed(gui_element_pattern, handler) | Registers a function for a given GUI element name or pattern when the element is confirmed. |
Registers a function for a given gui element name or pattern when the element is clicked.
Parameters:
Registers a function for a given GUI element name or pattern when the element checked state changes.
Parameters:
Registers a function for a given GUI element name or pattern when the element text changes.
Parameters:
Registers a function for a given GUI element name or pattern when the element selection changes.
Parameters:
Registers a function for a given GUI element name or pattern when the element state changes (drop down).
Parameters:
Registers a function for a given GUI element name or pattern when the element value changes (slider).
Parameters: