Used to create new gui prototypes see elements and concepts [[
utils.game |
expcore.store |
expcore.gui.instances |
Constructor.event(event_name) | Creates a new function to add functions to an event handler |
Constructor.extend(new_prototype) | Extents a prototype with the base functions of all gui prototypes, no metatables |
Constructor.store(sync, callback) | Creates a new function which adds a store to a gui define |
Constructor.setter(value_type, key[, second_key]) | Creates a setter function that checks the type when a value is set |
Prototype:uid() | Gets the uid for the element define |
Prototype:set_style(style[, function]) | Sets the style for the element define |
Prototype:set_embedded_flow(boolean) | Sets the element to be drawn inside a nameless flow, can be given a name using a function |
Prototype:raise_event(event_name, ...) | Raises a custom event for this define, any number of params can be given |
Prototype:draw_to(element) | The main function for defines, when called will draw an instance of this define to the given element what is drawn is based on the data in draw_data which is set using other functions |
Prototype:get_store(category) | Gets the value in this elements store, category needed if categorize function used |
Prototype:set_store(category, value) | Sets the value in this elements store, category needed if categorize function used |
Prototype:clear_store([category]) | Sets the value in this elements store to nil, category needed if categorize function used |
Prototype.debug_name | Sets a debug alias for the define |
Prototype.set_caption | Sets the caption for the element define |
Prototype.set_tooltip | Sets the tooltip for the element define |
Prototype.set_pre_authenticator | Sets an authenticator that blocks the draw function if check fails |
Prototype.set_post_authenticator | Sets an authenticator that disables the element if check fails |
Prototype.on_draw | Registers a callback to the on_draw event |
Prototype.on_style_update | Registers a callback to the on_style_update event |
Creates a new function to add functions to an event handler
Parameters:Extents a prototype with the base functions of all gui prototypes, no metatables
Parameters:Creates a new function which adds a store to a gui define
Parameters:Creates a setter function that checks the type when a value is set
Parameters:Gets the uid for the element define
Returns:Sets the style for the element define
Parameters:Sets the element to be drawn inside a nameless flow, can be given a name using a function
Parameters:Raises a custom event for this define, any number of params can be given
Parameters:The main function for defines, when called will draw an instance of this define to the given element what is drawn is based on the data in draw_data which is set using other functions
Parameters:Gets the value in this elements store, category needed if categorize function used
Parameters:Sets the value in this elements store, category needed if categorize function used
Parameters:Sets the value in this elements store to nil, category needed if categorize function used
Parameters:Sets a debug alias for the define
Sets the caption for the element define
Sets the tooltip for the element define
Sets an authenticator that blocks the draw function if check fails
Sets an authenticator that disables the element if check fails
Registers a callback to the on_draw event
Registers a callback to the on_style_update event