FlowLayoutExampleCode

From Crumbled World Wiki
Revision as of 07:58, 6 July 2025 by Anders (talk | contribs) (Created page with "==Example== <syntaxhighlight lang="lua"> local panel = form:add(Panel(PanelSize(Vec2(-1)))) --Set a FlowLayout to the panel. Note that doing this i meaningless because FlowLayout is the default layout. panel:setLayout(FlowLayout()) </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example

local panel = form:add(Panel(PanelSize(Vec2(-1))))
--Set a FlowLayout to the panel. Note that doing this i meaningless because FlowLayout is the default layout. 
panel:setLayout(FlowLayout())