Added missing comments to gui defines
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user