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 H3UI = require('openmw.interfaces').H3UI
ui.create {
type = ui.TYPE.Container,
layer = 'Windows',
content = ui.content {
H3UI.bookFrame {
title = 'Notes',
children = {
H3UI.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.