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:
@@ -601,28 +601,8 @@ local function generate_container(player,element)
|
||||
add_new_warp(right_align)
|
||||
end
|
||||
|
||||
-- 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 = 258
|
||||
|
||||
-- table that stores all the data
|
||||
local flow_table =
|
||||
flow.add{
|
||||
name='table',
|
||||
type='table',
|
||||
column_count=3
|
||||
}
|
||||
Gui.set_padding(flow_table)
|
||||
flow_table.style.horizontally_stretchable = true
|
||||
local flow_table = Gui.create_scroll_table(container,3,258)
|
||||
flow_table.style.top_cell_padding = 3
|
||||
flow_table.style.bottom_cell_padding = 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user