mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 12:16:37 +09:00
Added create data table to gui
This commit is contained in:
@@ -86,22 +86,12 @@ local function generate_container(player,element)
|
||||
header.style.horizontally_stretchable = true
|
||||
header.style.use_header_filler = false
|
||||
|
||||
-- main flow for the data
|
||||
local flow =
|
||||
container.add{
|
||||
name='scroll',
|
||||
type='scroll-pane',
|
||||
direction='vertical',
|
||||
horizontal_scroll_policy='never',
|
||||
vertical_scroll_policy='auto-and-reserve-space'
|
||||
}
|
||||
Gui.set_padding(flow,1,1,2,2)
|
||||
flow.style.horizontally_stretchable = true
|
||||
flow.style.maximal_height = 185
|
||||
-- table that stores all the data
|
||||
local flow_table = Gui.create_scroll_table(container,4,185)
|
||||
|
||||
-- message to say that you have not made any packs yet
|
||||
local non_made =
|
||||
flow.add{
|
||||
flow_table.parent.add{
|
||||
name='non_made',
|
||||
type='label',
|
||||
caption={'science-info.no-packs'}
|
||||
@@ -109,17 +99,6 @@ local function generate_container(player,element)
|
||||
non_made.style.width = 200
|
||||
non_made.style.single_line = false
|
||||
|
||||
-- table that stores all the data
|
||||
local flow_table =
|
||||
flow.add{
|
||||
name='table',
|
||||
type='table',
|
||||
column_count=4
|
||||
}
|
||||
Gui.set_padding(flow_table)
|
||||
flow_table.style.horizontally_stretchable = true
|
||||
flow_table.style.vertical_align = 'center'
|
||||
|
||||
local eta
|
||||
if config.show_eta then
|
||||
-- footer used to store the eta
|
||||
|
||||
Reference in New Issue
Block a user