diff --git a/docs/addons/Advanced-Start.html b/docs/addons/Advanced-Start.html index b51f20a5..f1689524 100644 --- a/docs/addons/Advanced-Start.html +++ b/docs/addons/Advanced-Start.html @@ -348,7 +348,7 @@ generated by LDoc
diff --git a/docs/addons/Chat-Popups.html b/docs/addons/Chat-Popups.html index fdb6a24b..e6749dcd 100644 --- a/docs/addons/Chat-Popups.html +++ b/docs/addons/Chat-Popups.html @@ -349,7 +349,7 @@ generated by LDoc diff --git a/docs/addons/Chat-Reply.html b/docs/addons/Chat-Reply.html index 91b5fa1d..bf0b3043 100644 --- a/docs/addons/Chat-Reply.html +++ b/docs/addons/Chat-Reply.html @@ -376,7 +376,7 @@ generated by LDoc diff --git a/docs/addons/Compilatron.html b/docs/addons/Compilatron.html index 889058f8..a0e1cfcf 100644 --- a/docs/addons/Compilatron.html +++ b/docs/addons/Compilatron.html @@ -585,7 +585,7 @@ generated by LDoc diff --git a/docs/addons/Damage-Popups.html b/docs/addons/Damage-Popups.html index 99fe3f44..d0a30aa0 100644 --- a/docs/addons/Damage-Popups.html +++ b/docs/addons/Damage-Popups.html @@ -349,7 +349,7 @@ generated by LDoc diff --git a/docs/addons/Death-Logger.html b/docs/addons/Death-Logger.html index 590c7e4b..1eefd356 100644 --- a/docs/addons/Death-Logger.html +++ b/docs/addons/Death-Logger.html @@ -404,7 +404,7 @@ generated by LDoc diff --git a/docs/addons/Discord-Alerts.html b/docs/addons/Discord-Alerts.html index 3e22e16a..42c5fbd8 100644 --- a/docs/addons/Discord-Alerts.html +++ b/docs/addons/Discord-Alerts.html @@ -460,7 +460,7 @@ generated by LDoc diff --git a/docs/addons/Player-Colours.html b/docs/addons/Player-Colours.html index 94b6590b..3081c6fa 100644 --- a/docs/addons/Player-Colours.html +++ b/docs/addons/Player-Colours.html @@ -404,7 +404,7 @@ generated by LDoc diff --git a/docs/addons/Pollution-Grading.html b/docs/addons/Pollution-Grading.html index ed128319..9cca3b35 100644 --- a/docs/addons/Pollution-Grading.html +++ b/docs/addons/Pollution-Grading.html @@ -320,7 +320,7 @@ generated by LDoc diff --git a/docs/addons/Scorched-Earth.html b/docs/addons/Scorched-Earth.html index 16ca5e5a..7024e35e 100644 --- a/docs/addons/Scorched-Earth.html +++ b/docs/addons/Scorched-Earth.html @@ -404,7 +404,7 @@ generated by LDoc diff --git a/docs/addons/Spawn-Area.html b/docs/addons/Spawn-Area.html index d708d75a..8b23f8b4 100644 --- a/docs/addons/Spawn-Area.html +++ b/docs/addons/Spawn-Area.html @@ -376,7 +376,7 @@ generated by LDoc diff --git a/docs/commands/Admin-Chat.html b/docs/commands/Admin-Chat.html index 7dc05f4a..50386c57 100644 --- a/docs/commands/Admin-Chat.html +++ b/docs/commands/Admin-Chat.html @@ -388,7 +388,7 @@ generated by LDoc diff --git a/docs/commands/Bonus.html b/docs/commands/Bonus.html index 58ab06cc..99979a83 100644 --- a/docs/commands/Bonus.html +++ b/docs/commands/Bonus.html @@ -500,7 +500,7 @@ generated by LDoc diff --git a/docs/commands/Cheat-Mode.html b/docs/commands/Cheat-Mode.html index 6873b6fd..05be743e 100644 --- a/docs/commands/Cheat-Mode.html +++ b/docs/commands/Cheat-Mode.html @@ -361,7 +361,7 @@ generated by LDoc diff --git a/docs/commands/Clear-Inventory.html b/docs/commands/Clear-Inventory.html index c280d9eb..2632583e 100644 --- a/docs/commands/Clear-Inventory.html +++ b/docs/commands/Clear-Inventory.html @@ -388,7 +388,7 @@ generated by LDoc diff --git a/docs/commands/Debug.html b/docs/commands/Debug.html index 6ebb7007..18b07c71 100644 --- a/docs/commands/Debug.html +++ b/docs/commands/Debug.html @@ -365,7 +365,7 @@ generated by LDoc diff --git a/docs/commands/Find.html b/docs/commands/Find.html index e2cd0dcc..9dcfd43f 100644 --- a/docs/commands/Find.html +++ b/docs/commands/Find.html @@ -360,7 +360,7 @@ generated by LDoc diff --git a/docs/commands/Help.html b/docs/commands/Help.html index cece090c..b7a7c97e 100644 --- a/docs/commands/Help.html +++ b/docs/commands/Help.html @@ -404,7 +404,7 @@ generated by LDoc diff --git a/docs/commands/Home.html b/docs/commands/Home.html index 3c7a8205..2eaa26e9 100644 --- a/docs/commands/Home.html +++ b/docs/commands/Home.html @@ -458,7 +458,7 @@ generated by LDoc diff --git a/docs/commands/Interface.html b/docs/commands/Interface.html index bba2600b..36f1fa37 100644 --- a/docs/commands/Interface.html +++ b/docs/commands/Interface.html @@ -416,7 +416,7 @@ generated by LDoc diff --git a/docs/commands/Jail.html b/docs/commands/Jail.html index 43f5e5e8..0ef7ecfc 100644 --- a/docs/commands/Jail.html +++ b/docs/commands/Jail.html @@ -611,7 +611,7 @@ generated by LDoc diff --git a/docs/commands/Kill.html b/docs/commands/Kill.html index fa88b477..186c5ea4 100644 --- a/docs/commands/Kill.html +++ b/docs/commands/Kill.html @@ -389,7 +389,7 @@ generated by LDoc diff --git a/docs/commands/Me.html b/docs/commands/Me.html index 6865f47d..3157f4bb 100644 --- a/docs/commands/Me.html +++ b/docs/commands/Me.html @@ -360,7 +360,7 @@ generated by LDoc diff --git a/docs/commands/Rainbow.html b/docs/commands/Rainbow.html index 4a57c50a..6a569356 100644 --- a/docs/commands/Rainbow.html +++ b/docs/commands/Rainbow.html @@ -388,7 +388,7 @@ generated by LDoc diff --git a/docs/commands/Repair.html b/docs/commands/Repair.html index 0bce4305..e4b1efd1 100644 --- a/docs/commands/Repair.html +++ b/docs/commands/Repair.html @@ -321,7 +321,7 @@ generated by LDoc diff --git a/docs/commands/Reports.html b/docs/commands/Reports.html index cfe0a159..baeb2896 100644 --- a/docs/commands/Reports.html +++ b/docs/commands/Reports.html @@ -585,7 +585,7 @@ generated by LDoc diff --git a/docs/commands/Roles.html b/docs/commands/Roles.html index cc0ee869..63985463 100644 --- a/docs/commands/Roles.html +++ b/docs/commands/Roles.html @@ -557,7 +557,7 @@ generated by LDoc diff --git a/docs/commands/Spawn.html b/docs/commands/Spawn.html index 859247a4..0e9f0d69 100644 --- a/docs/commands/Spawn.html +++ b/docs/commands/Spawn.html @@ -389,7 +389,7 @@ generated by LDoc diff --git a/docs/commands/Tag.html b/docs/commands/Tag.html index dfdcbf48..b811ef43 100644 --- a/docs/commands/Tag.html +++ b/docs/commands/Tag.html @@ -443,7 +443,7 @@ generated by LDoc diff --git a/docs/commands/Teleport.html b/docs/commands/Teleport.html index 1848f1a0..37c1228c 100644 --- a/docs/commands/Teleport.html +++ b/docs/commands/Teleport.html @@ -484,7 +484,7 @@ generated by LDoc diff --git a/docs/commands/Warnings.html b/docs/commands/Warnings.html index eb9dd3ff..09a0bc29 100644 --- a/docs/commands/Warnings.html +++ b/docs/commands/Warnings.html @@ -569,7 +569,7 @@ generated by LDoc diff --git a/docs/configs/Advanced-Start.html b/docs/configs/Advanced-Start.html index 0c5783c8..d384d219 100644 --- a/docs/configs/Advanced-Start.html +++ b/docs/configs/Advanced-Start.html @@ -506,7 +506,7 @@ generated by LDoc diff --git a/docs/configs/Bonuses.html b/docs/configs/Bonuses.html index 52c1dcc5..0917c4d5 100644 --- a/docs/configs/Bonuses.html +++ b/docs/configs/Bonuses.html @@ -237,7 +237,7 @@ generated by LDoc diff --git a/docs/configs/Chat-Reply.html b/docs/configs/Chat-Reply.html index 6594a2c5..ea3028b1 100644 --- a/docs/configs/Chat-Reply.html +++ b/docs/configs/Chat-Reply.html @@ -485,7 +485,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Auth-Admin.html b/docs/configs/Commands-Auth-Admin.html index d02099b4..7bd92c05 100644 --- a/docs/configs/Commands-Auth-Admin.html +++ b/docs/configs/Commands-Auth-Admin.html @@ -294,7 +294,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Auth-Roles.html b/docs/configs/Commands-Auth-Roles.html index 45cda632..da7c62d3 100644 --- a/docs/configs/Commands-Auth-Roles.html +++ b/docs/configs/Commands-Auth-Roles.html @@ -320,7 +320,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Auth-Runtime-Disable.html b/docs/configs/Commands-Auth-Runtime-Disable.html index 1e2b5098..b4d1c559 100644 --- a/docs/configs/Commands-Auth-Runtime-Disable.html +++ b/docs/configs/Commands-Auth-Runtime-Disable.html @@ -442,7 +442,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Parse-Roles.html b/docs/configs/Commands-Parse-Roles.html index 47d2034e..fa0b0c81 100644 --- a/docs/configs/Commands-Parse-Roles.html +++ b/docs/configs/Commands-Parse-Roles.html @@ -354,7 +354,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Parse.html b/docs/configs/Commands-Parse.html index a1895ddb..4da164e4 100644 --- a/docs/configs/Commands-Parse.html +++ b/docs/configs/Commands-Parse.html @@ -338,7 +338,7 @@ see ./expcore/commands.lua for more details generated by LDoc diff --git a/docs/configs/Compilatron.html b/docs/configs/Compilatron.html index 64adcfc4..9e941609 100644 --- a/docs/configs/Compilatron.html +++ b/docs/configs/Compilatron.html @@ -354,7 +354,7 @@ generated by LDoc diff --git a/docs/configs/Death-Logger.html b/docs/configs/Death-Logger.html index 74805d6c..4bc70ffb 100644 --- a/docs/configs/Death-Logger.html +++ b/docs/configs/Death-Logger.html @@ -416,7 +416,7 @@ generated by LDoc diff --git a/docs/configs/Discord-Alerts.html b/docs/configs/Discord-Alerts.html index 07cba503..07f576a8 100644 --- a/docs/configs/Discord-Alerts.html +++ b/docs/configs/Discord-Alerts.html @@ -237,7 +237,7 @@ generated by LDoc diff --git a/docs/configs/File-Loader.html b/docs/configs/File-Loader.html index 58ae563e..b17c2ac5 100644 --- a/docs/configs/File-Loader.html +++ b/docs/configs/File-Loader.html @@ -240,7 +240,7 @@ generated by LDoc diff --git a/docs/configs/Permission-Groups.html b/docs/configs/Permission-Groups.html index 87281de1..d8d2b6e5 100644 --- a/docs/configs/Permission-Groups.html +++ b/docs/configs/Permission-Groups.html @@ -295,7 +295,7 @@ generated by LDoc diff --git a/docs/configs/Player-List.html b/docs/configs/Player-List.html index a64923b7..7767e286 100644 --- a/docs/configs/Player-List.html +++ b/docs/configs/Player-List.html @@ -812,7 +812,7 @@ generated by LDoc diff --git a/docs/configs/Pollution-Grading.html b/docs/configs/Pollution-Grading.html index bb836f8f..9dc1dde3 100644 --- a/docs/configs/Pollution-Grading.html +++ b/docs/configs/Pollution-Grading.html @@ -384,7 +384,7 @@ generated by LDoc diff --git a/docs/configs/Popup-Messages.html b/docs/configs/Popup-Messages.html index 8834a58c..f7509b4e 100644 --- a/docs/configs/Popup-Messages.html +++ b/docs/configs/Popup-Messages.html @@ -414,7 +414,7 @@ generated by LDoc diff --git a/docs/configs/Preset-Player-Colours.html b/docs/configs/Preset-Player-Colours.html index d5e06589..ebaf5a99 100644 --- a/docs/configs/Preset-Player-Colours.html +++ b/docs/configs/Preset-Player-Colours.html @@ -324,7 +324,7 @@ generated by LDoc diff --git a/docs/configs/Repair.html b/docs/configs/Repair.html index 741a2beb..e25605ab 100644 --- a/docs/configs/Repair.html +++ b/docs/configs/Repair.html @@ -414,7 +414,7 @@ generated by LDoc diff --git a/docs/configs/Rockets.html b/docs/configs/Rockets.html index 35e5d51b..6d00c415 100644 --- a/docs/configs/Rockets.html +++ b/docs/configs/Rockets.html @@ -834,7 +834,7 @@ generated by LDoc diff --git a/docs/configs/Roles.html b/docs/configs/Roles.html index 2fc9736f..f068d198 100644 --- a/docs/configs/Roles.html +++ b/docs/configs/Roles.html @@ -292,7 +292,7 @@ generated by LDoc diff --git a/docs/configs/Science.html b/docs/configs/Science.html index 65bcb95e..70d9b4bf 100644 --- a/docs/configs/Science.html +++ b/docs/configs/Science.html @@ -354,7 +354,7 @@ generated by LDoc diff --git a/docs/configs/Scorched-Earth.html b/docs/configs/Scorched-Earth.html index 9de50ddf..7b59c252 100644 --- a/docs/configs/Scorched-Earth.html +++ b/docs/configs/Scorched-Earth.html @@ -388,7 +388,7 @@ generated by LDoc diff --git a/docs/configs/Spawn-Area.html b/docs/configs/Spawn-Area.html index d72010dc..22399910 100644 --- a/docs/configs/Spawn-Area.html +++ b/docs/configs/Spawn-Area.html @@ -744,7 +744,7 @@ generated by LDoc diff --git a/docs/configs/Tasks.html b/docs/configs/Tasks.html index 50107b1f..d4eabb34 100644 --- a/docs/configs/Tasks.html +++ b/docs/configs/Tasks.html @@ -384,7 +384,7 @@ generated by LDoc diff --git a/docs/configs/Warnings.html b/docs/configs/Warnings.html index d02fb163..fdf89564 100644 --- a/docs/configs/Warnings.html +++ b/docs/configs/Warnings.html @@ -355,7 +355,7 @@ generated by LDoc diff --git a/docs/configs/Warps.html b/docs/configs/Warps.html index 76a67c3e..8fb76e39 100644 --- a/docs/configs/Warps.html +++ b/docs/configs/Warps.html @@ -684,7 +684,7 @@ generated by LDoc diff --git a/docs/control/Jail.html b/docs/control/Jail.html index 8bf0dabd..6280d0cf 100644 --- a/docs/control/Jail.html +++ b/docs/control/Jail.html @@ -1208,7 +1208,7 @@ generated by LDoc diff --git a/docs/control/Production.html b/docs/control/Production.html index 48c4e2d0..5d253abf 100644 --- a/docs/control/Production.html +++ b/docs/control/Production.html @@ -1329,7 +1329,7 @@ generated by LDoc diff --git a/docs/control/Reports.html b/docs/control/Reports.html index ec69b942..d8056fbf 100644 --- a/docs/control/Reports.html +++ b/docs/control/Reports.html @@ -1110,7 +1110,7 @@ generated by LDoc diff --git a/docs/control/Rockets.html b/docs/control/Rockets.html index cc03876e..6a64ec4b 100644 --- a/docs/control/Rockets.html +++ b/docs/control/Rockets.html @@ -984,7 +984,7 @@ generated by LDoc diff --git a/docs/control/Tasks.html b/docs/control/Tasks.html index c4ff0bac..e0504c47 100644 --- a/docs/control/Tasks.html +++ b/docs/control/Tasks.html @@ -1039,7 +1039,7 @@ generated by LDoc diff --git a/docs/control/Warnings.html b/docs/control/Warnings.html index 09e669fd..b981575f 100644 --- a/docs/control/Warnings.html +++ b/docs/control/Warnings.html @@ -1465,7 +1465,7 @@ generated by LDoc diff --git a/docs/control/Warps.html b/docs/control/Warps.html index 1edc8de5..0abafcc4 100644 --- a/docs/control/Warps.html +++ b/docs/control/Warps.html @@ -1413,7 +1413,7 @@ generated by LDoc diff --git a/docs/core/Commands.html b/docs/core/Commands.html index 652d0f97..1fdcc0fb 100644 --- a/docs/core/Commands.html +++ b/docs/core/Commands.html @@ -1972,7 +1972,7 @@ generated by LDoc diff --git a/docs/core/Common-Library.html b/docs/core/Common-Library.html index f5b36e19..79f75a57 100644 --- a/docs/core/Common-Library.html +++ b/docs/core/Common-Library.html @@ -2480,7 +2480,7 @@ generated by LDoc diff --git a/docs/core/Gui.html b/docs/core/Gui.html index 7377280e..b0e22e17 100644 --- a/docs/core/Gui.html +++ b/docs/core/Gui.html @@ -41,22 +41,9 @@Core Module - Gui - - This file is used to require all the different elements of the gui module - - each module has an outline here but for more details see their separate files in ./gui - - please read the files for more documentation that cant be shown here - - please note there is a rework planned but not started
+Core Module - Gui
@@ -270,845 +240,105 @@| expcore.gui.core | +Prototype:clone(concept_name) | +Used to copy all the settings from one concept to another and removing links to the orginal |
| expcore.gui.instances | +Prototype:new_event(event_name[, factorio_event][, event_condition]) | +Adds a new event trigger to the concept which can be linked to a factorio event |
| expcore.gui.elements.buttons | +Prototype:on_custom_event(handler) | +Adds a custom event handler, replace with the name of the event |
| expcore.gui.elements.checkbox | +Prototype:raise_event(event_name[, event={}][, from_factorio=false]) | +Raises a custom event, folowing keys included automaticlly: concept, event name, game tick, player from player_index, element if valid |
| expcore.gui.elements.dropdown | +Prototype:new_property(property_name, default[, setter_callback]) | +Adds a new property to the concept, such as caption, tooltip, or some custom property you want to control |
| expcore.gui.elements.slider | +Prototype:set_custom_property(value) | +Sets a new value for a property, triggers setter method if provided, replace with property name |
| expcore.gui.elements.text | +Prototype:define_draw(draw_callback) | +Used to define how the concept is turned into an ingame element or "instance" as we may refer to them |
| expcore.gui.elements.elem-button | -||
| expcore.gui.elements.progress-bar | -||
| expcore.gui.concepts.toolbar | -||
| expcore.gui.concepts.left | -||
| expcore.gui.concepts.center | -||
| expcore.gui.concepts.popups | +Prototype:draw(parent_element) | +Calls all the draw functions in order to create this concept in game; will also store and sync the instance if stores are used |
| expcore.gui.core | +Prototype:define_instance_store([category_callback]) | +Adds an instance store to the concept; when a new instance is made it is stored so you can access it later | |
| expcore.gui.prototype | +Prototype.get_instances([category]) | +Gets all insatnces in a category, category may be nil to return all | |
| expcore.gui.concepts.toolbar | +Prototype.add_instance(element[, category]) | +Adds an instance to this concept, used automatically during concept:draw | |
| utils.game | -|||
| CenterFrames.get_flow(player) | -Gets the center flow for a player | -||
| CenterFrames.clear_flow(player) | -Clears the center flow for a player | -||
| CenterFrames.draw_frame(player, name) | -Draws the center frame for a player, if already open then will do nothing | -||
| CenterFrames.redraw_frame(player, name) | -Draws the center frame for a player, if already open then will destroy it and redraw | -||
| CenterFrames.toggle_frame(player, name[, state]) | -Toggles if the frame is currently open or not, will open if closed and close if open | -||
| CenterFrames.new_frame(permission_name) | -Creates a new center frame define | -||
| CenterFrames._prototype:set_auto_focus([state=true]) | -Sets the frame to be the current active gui when opened and closes all other frames | -||
| CenterFrames._prototype:draw_frame(player) | -Draws this frame to the player, if already open does nothing (will call on_draw to draw to the frame) | -||
| CenterFrames._prototype:redraw_frame(player) | -Draws this frame to the player, if already open it will remove it and redraw it (will call on_draw to draw to the frame) | -||
| CenterFrames._prototype:toggle_frame(player) | -Toggles if the frame is open, if open it will close it and if closed it will open it | -||
| CenterFrames._prototype:event_handler([action=update]) | -Creates an event handler that will trigger one of its functions, use with Event.add | +Prototype.update_instances([category], update_callback) | +Applies an update function to all instances, simialr use to what table.forEach would be |
| expcore.gui.core | +Prototype:define_data_store([category_callback]) | +Adds a data store to this concept which allows you to store synced/percistent data between instances |
| expcore.gui.prototype | +Prototype.get_data([category]) | +Gets the data that is stored for this category |
| expcore.gui.concepts.toolbar | +Prototype.set_data([category], value) | +Sets the data that is stored for this category |
| expcore.gui.elements.buttons | +Prototype.clear_data([category]) | +Clears the data that is stored for this category |
| mod-gui | +Prototype.update_data([category], update_callback) | +Updates the data that is stored for this category |
| utils.game | +Prototype:define_combined_store([category_callback], get_callback, set_callback) | +Used to add a both instance and data stores which are linked together, new instances are synced to current value, changing one instances changes them all |
| utils.event | +Prototype.set_instance_from_store(the) | +Will set the state of an instance based on the value in the store |
| LeftFrames.get_flow(player) | -Gets the left frame flow for a player | -|
| LeftFrames.get_frame(name, player) | -Gets one frame from the left flow by its name | -|
| LeftFrames.get_open(player) | -Gets all open frames for a player, if non are open it will remove the close all button | -|
| LeftFrames.toggle_frame(name, player[, state]) | -Toggles the visibility of a left frame, or sets its visibility state | -|
| LeftFrames.new_frame(permission_name) | -Creates a new left frame define | -|
| LeftFrames._prototype:set_open_by_default([state=true]) | -Sets if the frame is visible when a player joins, can also be a function to return a boolean | -|
| LeftFrames._prototype:set_direction(direction) | -Sets the direction of the frame, either vertical or horizontal | -|
| LeftFrames._prototype:_internal_draw(player) | -Creates the gui for the first time, used internally | -|
| LeftFrames._prototype:get_frame(player) | -Gets the frame for this define from the left frame flow | -|
| LeftFrames._prototype:is_open(player) | -Returns if the player currently has this define visible | -|
| LeftFrames._prototype:toggle(player) | -Toggles the visibility of the left frame | -|
| LeftFrames._prototype:update(player) | -Updates the contents of the left frame, first tries update callback, other wise will clear and redraw | -|
| LeftFrames._prototype:update_all([update_offline=false]) | -Updates the frame for all players, see update | -|
| LeftFrames._prototype:redraw(player) | -Redraws the frame by calling on_draw, will always clear the frame | -|
| LeftFrames._prototype:redraw_all([update_offline=false]) | -Redraws the frame for all players, see redraw | -|
| LeftFrames._prototype:event_handler([action=update]) | -Creates an event handler that will trigger one of its functions, use with Event.add | -
| expcore.gui.core | -|
| expcore.gui.prototype | -|
| utils.game | -|
| utils.event | -|
| expcore.gui.elements.progress-bar | -|
| expcore.gui.elements.buttons | -|
| mod-gui | -|
| resources.color_presets | -|
| utils.global | -|
| PopupFrames.get_flow(player) | -Gets the left flow that contains the popup frames | -
| PopupFrames.open(define_name, player[, open_time], ...) | -Opens a popup for the player, can give the amount of time it is open as well as params for the draw function | -
| PopupFrames.close_progress | -Progress bar which when depleted will close the popup frame | -
| PopupFrames.close_button | -A button which can be used to close the gui before the timer runs out | -
| PopupFrames.new_popup([name]) | -Creates a new popup frame define | -
| PopupFrames._prototype:set_default_open_time(amount) | -Sets the default open time for the popup, will be used if non is provided with open | -
| PopupFrames._prototype:open(player[, open_time], ...) | -Opens this define for a player, can be given open time and any other params for the draw function | -
| expcore.gui.core | -|
| expcore.gui.elements.buttons | -|
| expcore.roles | -|
| utils.event | -|
| utils.game | -|
| mod-gui | -|
| Toolbar.new_button([name]) | -Adds a new button to the toolbar | -
| Toolbar.add_button(button) | -Adds an existing buttton to the toolbar | -
| Toolbar.update(player) | -Updates the player's toolbar with an new buttons or expected change in auth return | -
| utils.gui | -|
| utils.game | -|
| new_define(prototype[, debug_name]) | -Used to create new element defines from a class prototype, please use the own given by the class | -
| get_define(name[, internal]) | -Gets an element define give the uid, debug name or a copy of the element define | -
| categorize_by_player(element) | -A categorize function to be used with add_store, each player has their own value | -
| categorize_by_force(element) | -A categorize function to be used with add_store, each force has its own value | -
| categorize_by_surface(element) | -A categorize function to be used with add_store, each surface has its own value | -
| draw(name, element) | -Draws a copy of the element define to the parent element, see draw_to | -
| toggle_enabled(element) | -Will toggle the enabled state of an element | -
| toggle_visible(element) | -Will toggle the visiblity of an element | -
| set_padding(element[, up=0][, down=0][, left=0][, right=0]) | -Sets the padding for a gui element | -
| set_padding_style(style[, up=0][, down=0][, left=0][, right=0]) | -Sets the padding for a gui style | -
| create_alignment(element[, name][, horizontal_align='right'][, vertical_align='center']) | -Allows the creation of an alignment flow to place elements into | -
| destroy_if_valid(element) | -Destroies an element but tests for it being present and valid first | -
| create_scroll_table(element, table_size, maximal_height[, name='scroll']) | -Creates a scroll area with a table inside, table can be any size | -
| create_header(element, caption[, tooltip][, right_align][, name='header']) | -Creates a header section with a label and button area | -
| mod-gui | -|
| expcore.gui.core | -|
| expcore.gui.prototype | -|
| Button.new_button([name]) | -Creates a new button element define | -
| Button._prototype:set_sprites(sprite[, hovered_sprite][, clicked_sprite]) | -Adds sprites to a button making it a sprite button | -
| Button._prototype:set_click_filter(filter[, ...]) | -Adds a click / mouse button filter to the button | -
| Button._prototype:set_key_filter(filter[, ...]) | -Adds a control key filter to the button | -
| expcore.gui.core | -|
| expcore.gui.prototype | -|
| expcore.store | -|
| utils.game | -|
| Checkbox.new_checkbox([name]) | -Creates a new checkbox element define | -
| Checkbox.new_radiobutton([name]) | -Creates a new radiobutton element define, has all functions checkbox has | -
| Checkbox._prototype_radiobutton:add_as_option(option_set, option_name) | -Adds this radiobutton to be an option in the given option set (only one can be true at a time) | -
| Checkbox._prototype_radiobutton:get_store(category, internal) | -Gets the stored value of the radiobutton or the option set if present | -
| Checkbox._prototype_radiobutton:set_store(category, value, internal) | -Sets the stored value of the radiobutton or the option set if present | -
| Checkbox.new_option_set(name, callback, categorize) | -Registers a new option set that can be linked to radiobuttons (only one can be true at a time) | -
| Checkbox.draw_option_set(name, element) | -Draws all radiobuttons that are part of an option set at once (Gui.draw will not work) | -
| Checkbox.reset_radiobuttons(element[, exclude][, recursive=false]) | -Sets all radiobutton in a element to false (unless excluded) and can act recursively | -
| 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 | -
| expcore.gui.core | -|
| expcore.gui.prototype | -|
| utils.game | -|
| ElemButton.new_elem_button([name]) | -Creates a new elem button element define | -
| ElemButton._prototype.set_type | -Sets the type of the elem button, the type is required so this must be called at least once | -
| ElemButton._prototype:set_default(value) | -Sets the default value for the elem button, this may be a function or a string | -
| expcore.gui.core | -|
| expcore.gui.prototype | -|
| utils.global | -|
| utils.game | -|
| ProgressBar.set_maximum(element, amount) | -Sets the maximum value that represents the end value of the progress bar | -
| ProgressBar.increment(element[, amount=1]) | -Increases the value of the progressbar, if a define is given all of its instances have incremented | -
| ProgressBar.decrement(element[, amount=1]) | -Decreases the value of the progressbar, if a define is given all of its instances have decremented | -
| ProgressBar.new_progressbar([name]) | -Creates a new progressbar element define | -
| ProgressBar._prototype:set_default_maximum(amount) | -Sets the maximum value that represents the end value of the progress bar | -
| ProgressBar._prototype:use_count_down([state=true]) | -Will set the progress bar to start at 1 and trigger when it hits 0 | -
| ProgressBar._prototype:increment([amount=1][, category]) | -Increases the value of the progressbar | -
| ProgressBar._prototype:increment_filtered([amount=1], filter) | -Increases the value of the progressbar, if the filter condition is met, does not work with store | -
| ProgressBar._prototype:decrement([amount=1][, category]) | -Decreases the value of the progressbar | -
| ProgressBar._prototype:decrement_filtered([amount=1], filter) | -Decreases the value of the progressbar, if the filter condition is met, does not work with store | -
| ProgressBar._prototype:add_element(element[, maximum]) | -Adds an element into the list of instances that will are waiting to complete, does not work with store - note use store if you want persistent data, this only stores the elements not the values which they have | -
| ProgressBar._prototype:reset_element(element) | -Resets an element, or its store, to be back at the start, either 1 or 0 | -
| ProgressBar._prototype:event_counter([filter]) | -Event handler factory that counts up by 1 every time the event triggers, can filter which elements have incremented | -
| ProgressBar._prototype:event_countdown([filter]) | -Event handler factory that counts down by 1 every time the event triggers, can filter which elements have decremented | -
| expcore.gui.core | -|
| expcore.gui.prototype | -|
| expcore.gui.instances | -|
| utils.game | -|
| Slider.new_slider([name]) | -Creates a new slider element define | -
| Slider._prototype:set_range([min][, max]) | -Sets the range of a slider, if not used will use default values for a slider | -
| Slider._prototype:draw_label(element) | -Draws a new label and links its value to the value of this slider, if no store then it will only show one value per player | -
| Slider._prototype:enable_auto_draw_label([state=true]) | -Enables auto draw of the label, the label will share the same parent element as the slider | -
| expcore.gui.core | -|
| expcore.gui.prototype | -|
| utils.game | -|
| Text.new_text_field([name]) | -Creates a new text field element define | -
| Text.new_text_box([name]) | -Creates a new text box element define | -
| Text._prototype_box:set_selectable([state=true]) | -Sets the text box to be selectable | -
| Text._prototype_box:set_word_wrap([state=true]) | -Sets the text box to have word wrap | -
| Text._prototype_box:set_read_only([state=true]) | -Sets the text box to be read only | -
| utils.global | -|
| Instances.has_categories(name) | -Returns if a instance group has a categorise function; must be registered | -
| Instances.is_registered(name) | -Returns if the given name is a registered instance group | -
| Instances.register(name[, categorise]) | -Registers the name of an instance group to allow for storing element instances | -
| Instances.add_element(name, element) | -Adds an element to the instance group under the correct category; must be registered | -
| Instances.get_elements_raw(name[, category]) | -Gets all element instances without first removing any invalid ones; used internally and must be registered | -
| Instances.get_valid_elements(name[, category][, callback]) | -Gets all valid element instances and has the option of running a callback on those that are valid | -
| Instances.unregistered_add_element(name, category, element) | -A version of add_element that does not require the group to be registered | -
| Instances.unregistered_get_elements(name, category[, callback]) | -A version of get_elements that does not require the group to be registered | -
| 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.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 | -
| Prototype:set_style(style[, callback]) | -Sets the style for the element define | -
| Prototype:set_embedded_flow(state) | -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 | -
| expcore.gui | -||
| expcore.common | -||
| resources.color_presets | -||
| utils.event | -||
| expcore.store | +Prototype.set_store_from_instance(the) | +Will set the value in the store and update the other instances based on the instance given |
Gets the center flow for a player
+Used to copy all the settings from one concept to another and removing links to the orginal
@@ -1571,136 +373,13 @@Clears the center flow for a player
- - - - Parameters: - -Draws the center frame for a player, if already open then will do nothing
- - - - Parameters: - -
+local custom_button =
+Gui.get_concept('Button'):clone('CustomButton')
Draws the center frame for a player, if already open then will destroy it and redraw
- - - - Parameters: - -Toggles if the frame is currently open or not, will open if closed and close if open
- - - - Parameters: - -Creates a new center frame define
- - - - Parameters: - -Sets the frame to be the current active gui when opened and closes all other frames
- - - - Parameters: - -Draws this frame to the player, if already open does nothing (will call on_draw to draw to the frame)
- - - - Parameters: - -Draws this frame to the player, if already open it will remove it and redraw it (will call on_draw to draw to the frame)
- - - - Parameters: - -Toggles if the frame is open, if open it will close it and if closed it will open it
- - - - Parameters: - -Creates an event handler that will trigger one of its functions, use with Event.add
- - - - Parameters: - -Gets the left frame flow for a player
- - - - Parameters: - -Gets one frame from the left flow by its name
- - - - Parameters: - -Gets all open frames for a player, if non are open it will remove the close all button
- - - - Parameters: - -Toggles the visibility of a left frame, or sets its visibility state
- - - - Parameters: - -Creates a new left frame define
- - - - Parameters: - -Sets if the frame is visible when a player joins, can also be a function to return a boolean
- - - - Parameters: - -Sets the direction of the frame, either vertical or horizontal
- - - - Parameters: - -Creates the gui for the first time, used internally
- - - - Parameters: - -Gets the frame for this define from the left frame flow
- - - - Parameters: - -Returns if the player currently has this define visible
- - - - Parameters: - -Toggles the visibility of the left frame
- - - - Parameters: - -Updates the contents of the left frame, first tries update callback, other wise will clear and redraw
- - - - Parameters: - -Updates the frame for all players, see update
- - - - Parameters: - -Redraws the frame by calling on_draw, will always clear the frame
- - - - Parameters: - -Redraws the frame for all players, see redraw
- - - - Parameters: - -Creates an event handler that will trigger one of its functions, use with Event.add
- - - - Parameters: - -Gets the left flow that contains the popup frames
- - - - Parameters: - -Opens a popup for the player, can give the amount of time it is open as well as params for the draw function
- - - - Parameters: - -Progress bar which when depleted will close the popup frame
- - - - - - - - - - - - - - - - -A button which can be used to close the gui before the timer runs out
- - - - - - - - - - - - - - - - -Creates a new popup frame define
- - - - Parameters: - -Sets the default open time for the popup, will be used if non is provided with open
- - - - Parameters: - -Opens this define for a player, can be given open time and any other params for the draw function
- - - - Parameters: - -Adds a new button to the toolbar
- - - - Parameters: - -Adds an existing buttton to the toolbar
- - - - Parameters: - -Updates the player's toolbar with an new buttons or expected change in auth return
- - - - Parameters: - -Used to create new element defines from a class prototype, please use the own given by the class
- - - - Parameters: - -Gets an element define give the uid, debug name or a copy of the element define
- - - - Parameters: - -A categorize function to be used with add_store, each player has their own value
- - - - Parameters: - -A categorize function to be used with add_store, each force has its own value
- - - - Parameters: - -A categorize function to be used with add_store, each surface has its own value
- - - - Parameters: - -Draws a copy of the element define to the parent element, see draw_to
- - - - Parameters: - -Will toggle the enabled state of an element
- - - - Parameters: - -Will toggle the visiblity of an element
- - - - Parameters: - -Sets the padding for a gui element
- - - - Parameters: - -Sets the padding for a gui style
- - - - Parameters: - -Allows the creation of an alignment flow to place elements into
- - - - Parameters: - -Destroies an element but tests for it being present and valid first
- - - - Parameters: - -Creates a scroll area with a table inside, table can be any size
- - - - Parameters: - -Creates a header section with a label and button area
- - - - Parameters: - -Creates a new button element define
- - - - Parameters: - -Adds sprites to a button making it a sprite button
- - - - Parameters: - -Adds a click / mouse button filter to the button
- - - - Parameters: - -Adds a control key filter to the button
- - - - Parameters: - -Creates a new checkbox element define
- - - - Parameters: - -Creates a new radiobutton element define, has all functions checkbox has
- - - - Parameters: - -Adds this radiobutton to be an option in the given option set (only one can be true at a time)
- - - - Parameters: - -Gets the stored value of the radiobutton or the option set if present
- - - - Parameters: - -Sets the stored value of the radiobutton or the option set if present
- - - - Parameters: - -Registers a new option set that can be linked to radiobuttons (only one can be true at a time)
- - - - Parameters: - -Draws all radiobuttons that are part of an option set at once (Gui.draw will not work)
- - - - Parameters: - -Sets all radiobutton in a element to false (unless excluded) and can act recursively
- - - - Parameters: - -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: - -