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.
infodefaultsuccesswarningdangerbuttons
{ 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.textnumbertimeout
number?
How many seconds until the popup closes by itself and gives
nil, where nil or 0 waits forever.