Builds a ui.TYPE.Flex with props.horizontal = true. The component's orientation overrides props.horizontal.
Example
local ui = require 'openmw.ui'
local row = require 'scripts.s3.components.row'
local text = require 'scripts.s3.components.text'
ui.create {
type = ui.TYPE.Container,
layer = 'Windows',
content = ui.content {
row {
children = {
text {
text = 'Left',
},
text {
text = 'Right',
},
},
},
},
}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.