DirkScripts
Docs
Text UI
#lib.showTextUI
Show persistent text on screen (e.g. interaction prompts).
lualib.showTextUI('Press [E] to open', { position = 'bottom-center', icon = 'fa-door-open' })
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | yes | Text to display |
| options | table | no | position and icon overrides |
#lib.updateTextUI
Update the text of the currently displayed text UI.
lualib.updateTextUI('Press [E] to close')
#lib.hideTextUI
Hide the text UI.
lualib.hideTextUI()
#lib.isTextUIOpen
Check if the text UI is currently visible.
lualocal open = lib.isTextUIOpen()
