Cleaned core gui files

This commit is contained in:
Cooldude2606
2020-03-17 22:36:52 +00:00
parent a367d83144
commit c2c535848d
11 changed files with 250 additions and 193 deletions

View File

@@ -105,7 +105,7 @@ Gui.element(function(event_trigger,parent,player_data)
player_name.style.font_color = player_data.chat_color
-- Add the time played label
local alignment = Gui.alignment(parent,nil,nil,'player-time-'..player_data.index)
local alignment = Gui.alignment(parent,'player-time-'..player_data.index)
local time_label = alignment.add{
name = 'label',
type = 'label',

View File

@@ -55,7 +55,7 @@ Gui.element(function(_,parent,label_data)
name_label.style.padding = {0,2}
--- Right aligned label to store the data
local alignment = Gui.alignment(parent,nil,nil,data_fullname)
local alignment = Gui.alignment(parent,data_fullname)
local element =
alignment.add{
type = 'label',
@@ -302,7 +302,7 @@ Gui.element(function(_,parent,silo_data)
silo_cords(parent,silo_data)
-- Add a progress label
local alignment = Gui.alignment(parent,nil,nil,silo_name)
local alignment = Gui.alignment(parent,silo_name)
local element =
alignment.add{
type = 'label',

View File

@@ -23,7 +23,7 @@ Gui.element(function(_,parent,production_label_data)
local color = production_label_data.color
-- Add an alignment for the number
local alignment = Gui.alignment(parent,nil,nil,name)
local alignment = Gui.alignment(parent,name)
-- Add the main value label
local element =

View File

@@ -118,7 +118,7 @@ Gui.element(function(_,parent,task_id)
task_flow.style.padding = 0
-- Add the two edit buttons outside the task flow
local edit_flow = Gui.alignment(parent,nil,nil,'edit-'..task_id)
local edit_flow = Gui.alignment(parent,'edit-'..task_id)
edit_task(edit_flow)
discard_task(edit_flow)

View File

@@ -137,7 +137,7 @@ Gui.element(function(_,parent,warp_id)
warp_flow.style.padding = 0
-- Add the two edit buttons outside the warp flow
local edit_flow = Gui.alignment(parent,nil,nil,'edit-'..warp_id)
local edit_flow = Gui.alignment(parent,'edit-'..warp_id)
edit_warp(edit_flow)
discard_warp(edit_flow)