method
Ui.set_text
Ui.set_text(id: UI_Name, text: s)
Sets the text of the label or button with that id; the menu re-lays itself out on its next tick. Interpolated strings make run stats one line.
Example
# doc-check: skip — illustrative
Ui.set_text(id: UI_Stats, text: `floor {run.floor} kills {run.kills}`)