Skip to content

PopupOptions

The title, text, buttons and optional input box you pass to ui.popup to ask a player something.

Fields

title
string
The title the popup shows to the player.
text
string
The message the popup shows to the player.
variant
string?
The popup's style, which is info when you leave it out.
infodefaultsuccesswarningdanger
buttons
{ string }?
The labels of the buttons, up to 3, and one OK button shows when you leave it out.
input
{ kind: "text" | "number", placeholder: string?, max_length: number?, min: number?, max: number? }?
Adds a box for the player to type into, where kind sets whether it takes text or a number.
textnumber
timeout
number?
How many seconds until the popup closes by itself and gives nil, where nil or 0 waits forever.

Tip of the day

From: USBX

HOME Menu

Wii Menu

Wii Remote Settings