Skip to content
S3ctor’s S3cret St4sh
api

divider

Draw a theme-aware horizontal or vertical separator.

Builds a one-pixel theme-aware separator by default. A divider stretches across its parent on the divider axis unless length is supplied.

Example

local H3UI = require('openmw.interfaces').H3UI

local section = H3UI.column {
    gap = 4,
    H3UI.text { text = 'Spells', tone = 'accent' },
    H3UI.divider(),
    H3UI.text 'Detect Creature',
}

For a vertical separator:

H3UI.divider {
    orientation = 'vertical',
    thickness = 1,
}

Parameters

FieldTypeDescription
orientation'horizontal' or 'vertical'?Divider direction; defaults to horizontal.
thicknessnumber?Positive thickness; defaults to 1.
lengthnumber?Fixed length. Omit to stretch across the parent axis.
coloropenmw.util.Color?Override the active H3UI chrome-border color.

Common layout fields are documented on the UI Components overview.

See also

row · column · box