Gui class define for dropdowns and list box [[
expcore.gui.core |
expcore.gui.prototype |
utils.game |
Dropdown.new_dropdown([name]) | Creates a new dropdown element define |
Dropdown.new_list_box([name]) | Creates a new list box element define |
Dropdown._prototype:new_static_options(options[, ...], the) | Adds new static options to the dropdown which will trigger the general callback |
Dropdown._prototype:new_dynamic_options(callback) | Adds a callback which should return a table of values to be added as options for the dropdown (appended after static options) |
Dropdown._prototype:add_option_callback(option, callback) | Adds a case specific callback which will only run when that option is selected (general case still triggered) |
Dropdown.select_value(element, value) | Selects the option from a dropdown or list box given the value rather than key |
Dropdown.get_selected_value(element) | Returns the currently selected value rather than index |
Creates a new dropdown element define
Parameters:Creates a new list box element define
Parameters:Adds new static options to the dropdown which will trigger the general callback
Parameters:Adds a callback which should return a table of values to be added as options for the dropdown (appended after static options)
Parameters:Adds a case specific callback which will only run when that option is selected (general case still triggered)
Parameters:Selects the option from a dropdown or list box given the value rather than key
Parameters:Returns the currently selected value rather than index
Parameters: