Text UI

A small on-screen prompt that shows an action key and a label. Typically used near interaction zones.

showTextUI

Show the Text UI.

showTextUI(data)

-- or via export:
exports['koja-lib']:showTextUI(data)
Field
Type
Default
Description

key

string

"E"

Key name displayed on the prompt

label

string

"Action"

Short label next to the key

desc

string

"Press to perform action"

Description text

hideTextUI

Hide the Text UI.

hideTextUI()

-- or via export:
exports['koja-lib']:hideTextUI()

isTextUIOpen

Returns whether the Text UI is currently visible and the current data.

Returns

  • openboolean

  • currenttable | nil — the data passed to the last showTextUI call

Theme

Example

Last updated