User Interface#

Provides functionality for drawing and interacting with in-game user interface elements: messages, panels, buttons, text and input fields.

Example#

The following example shows a message at the top of the screen for 10 seconds:

local krpc = require 'krpc'

local conn = krpc.connect('User Interface Example')
conn.ui.message('Hello, World!', 10)