Added common header creation

This commit is contained in:
Cooldude2606
2019-06-14 20:31:43 +01:00
parent fd6aced4d5
commit 1d31ab09ad
5 changed files with 55 additions and 66 deletions

View File

@@ -75,16 +75,11 @@ local function generate_container(player,element)
Gui.set_padding(container)
-- main header for the gui
local header =
container.add{
name='header',
type='frame',
caption={'science-info.main-caption'},
style='subheader_frame'
}
Gui.set_padding(header,2,2,4,4)
header.style.horizontally_stretchable = true
header.style.use_header_filler = false
Gui.create_header(
container,
{'science-info.main-caption'},
{'science-info.main-tooltip'}
)
-- table that stores all the data
local flow_table = Gui.create_scroll_table(container,4,185)