Builds a transparent H3UI box with padding and a paragraph-text child by default. It is content, not a tooltip manager.
Example
local ui = require 'openmw.ui'
local tooltip = require 'scripts.s3.components.tooltip'
local util = require 'openmw.util'
ui.create {
type = ui.TYPE.Container,
layer = 'Windows',
content = ui.content {
tooltip {
text = 'This explains the item under the pointer.',
props = {
position = util.vector2(100, 100),
},
},
},
}Parameters
| Field | Type | Description |
|---|---|---|
text | string? | Text for the generated paragraph. |
textProps | table? | Properties for the generated paragraph. |
template | openmw.ui.Template? | Replaces the default transparent box template. |
content | table? | Custom child content; replaces generated text. |
children | table? | Custom child layouts used when content is absent. |
Common layout fields are documented on the UI Components overview.