Added missing comments to gui defines

This commit is contained in:
Cooldude2606
2019-05-29 19:56:40 +01:00
parent 31e67f8a1c
commit 420dd4789d
4 changed files with 66 additions and 11 deletions

View File

@@ -1,3 +1,4 @@
--- Adds a task list to the game which players can add remove and edit items on
local Gui = require 'expcore.gui'
local Store = require 'expcore.store'
local Global = require 'utils.global'
@@ -365,6 +366,7 @@ local function generate_container(player,element)
return flow_table
end
--- Registeres the task list
local task_list =
Gui.new_left_frame('gui/task-list')
:set_sprites('utility/not_enough_repair_packs_icon')
@@ -392,6 +394,7 @@ end)
update_all = task_list 'update_all'
--- When a new task is added it will udpate the task list for everyone on that force
Store.register(task_store,function(value,task_id)
local details = task_details[task_id]
local force = game.forces[details.force]