GridLayoutExampleCode

From Crumbled World Wiki
Revision as of 07:57, 6 July 2025 by Anders (talk | contribs) (Created page with "==Example== <syntaxhighlight lang="lua"> 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)) </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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))