FallLayout

From Crumbled World Wiki
Revision as of 13:41, 5 July 2025 by Anders (talk | contribs) (Created page with "{{:FallLayoutExampleCode}} ==Inheritance== Layout ==Constructor== {| class="wikitable" !|function !|description |- |FallLayout(Alignment align) | |- |FallLayout(PanelSize panelSpacing) | |- |FallLayout(Alignment align, PanelSize panelSpacing) | |- |FallLayout(FallLayout fallLayout) | |- |FallLayout() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Alignment |getAlignment() |Get Ali...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example

local panel = form:add(Panel(PanelSize(Vec2(-1))))
--Set a FallLayout to the panel.
panel:setLayout(FallLayout())

Inheritance

Layout

Constructor

function description
FallLayout(Alignment align)
FallLayout(PanelSize panelSpacing)
FallLayout(Alignment align, PanelSize panelSpacing)
FallLayout(FallLayout fallLayout)
FallLayout()

Functions

return function description
Alignment getAlignment() Get Alignment.
setAlignment(Alignment align) set Alignment.