--- # Interface The interface table contains bindings which allow scripts to display a message at the bottom of the screen, among other things. --- #### `void` interface.queueMessage(`String` message, [`float` cooldown, [`float` springState]]) Queues a message popup at the bottom of the screen with an optional **cooldown** and **springState**. --- #### `void` interface.setHudVisible(`bool` visible) Sets the HUD's visibility. #### `bool` interface.hudVisible() Returns the HUD's visibility. --- #### `PaneId` interface.bindRegisteredPane(`string` paneName) Binds a registered pane (defined in `/source/frontend/StarMainInterfaceTypes`) to a Lua value, which can then call widget functions on that pane.
Panes EscapeDialog
Inventory
Codex
Cockpit
Tech
Songbook
Ai
Popup
Confirmation
JoinRequest
Options
QuestLog
ActionBar
TeamBar
StatusPane
Chat
WireInterface
PlanetText
RadioMessagePopup
CraftingPlain
QuestTracker
MmUpgrade
Collections
#### `void` interface.displayRegisteredPane(`string` paneName) Displays a registered pane. --- #### `CanvasWidget` interface.bindCanvas(`string` name, [`bool` ignoreInterfaceScale = false]) Binds the canvas widget on the main interface with the specified name as userdata for easy access. The `CanvasWidget` has the same methods as described in widget.md. - **ignoreInterfaceScale** is used to ignore the current interface scaling and bind the canvas with the screen size. --- #### `int` interface.scale() Returns the scale used for interfaces. ---