Builds a solid H3UI framed body, optionally preceded by a header title. It is a layout, not a window.
Example
local ui = require 'openmw.ui'
local bookFrame = require 'scripts.s3.components.bookFrame'
local text = require 'scripts.s3.components.text'
ui.create {
type = ui.TYPE.Container,
layer = 'Windows',
content = ui.content {
bookFrame {
title = 'Notes',
children = {
text {
text = 'A solid framed page.',
},
},
},
},
}Parameters
| Field | Type | Description |
|---|---|---|
title | string? | Optional heading text. |
titleProps | table? | Properties for the generated heading. |
backgroundProps | table? | Properties for the generated background; H3UI themes use this slot for the configured background color and transparency. |
template | openmw.ui.Template? | Replaces the default solid frame template. |
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.