Builds a ui.TYPE.Flex with props.horizontal = false. The component's orientation overrides props.horizontal.
Example
local ui = require 'openmw.ui'
local column = require 'scripts.s3.components.column'
local text = require 'scripts.s3.components.text'
ui.create {
type = ui.TYPE.Container,
layer = 'Windows',
content = ui.content {
column {
children = {
text {
text = 'Top',
},
text {
text = 'Bottom',
},
},
},
},
}Parameters
| Field | Type | Description |
|---|---|---|
content | table? | Child content; takes precedence over children. |
children | table? | Child layouts used when content is absent. |
Common layout fields are documented on the UI Components overview.