API Reference › Ui
namespace

Ui

The retained-mode menu API over a ui block. Ui.build constructs every declared widget tree once (after fonts and skins are loaded); Ui.open makes one menu active and Ui.close deactivates it; the frame loop ticks navigation on its own, an activation fires the UiClicked event, and Ui.clicked is the polled form; Ui.set_text updates a label or button, and Ui.render draws the active menu (call it from an Overlay handler so it paints over the world). Every id: Name in a ui block mints a UI_Name handle.

Ui.build()Construct every declared ui block (loads skins, measures fonts).Ui.open(id: UI_Name)Make one menu active and focus its first button.Ui.close()Deactivate the menu: no menu is open.Ui.tick(key: k)Advance navigation by one key (the frame loop does this for you).Ui.clicked(id: UI_Name) -> boolWas this control activated this frame? (polled form of UiClicked)Ui.set_text(id: UI_Name, text: s)Replace a label's or button's text.Ui.render()Draw the active menu.
← All symbols