mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 19:45:22 +09:00
Cleaned core gui files
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user