GridLayoutExampleCode

From Crumbled World Wiki
Jump to: navigation, search

Example

local panel = form:add(Panel(PanelSize(Vec2(-1))))
--Set a gidlayout with 2 rows and 4 columns. Only the 8 panels can be added to the panel.
panel:setLayout(GridLayout(2,4))