GridLayoutExampleCode: Difference between revisions
From Crumbled World Wiki
(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>") |
(No difference)
|
Latest revision as of 07:57, 6 July 2025
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))