tgui_list_input
Datum used for instantiating and using a TGUI-controlled list input that prompts the user with a message and shows a list of selectable options
Vars | |
choice | The button that the user has pressed, null if no selection has been made |
---|---|
closed | Boolean field describing if the tgui_list_input was closed by the user. |
default | The default button to be selected |
deletion_timer | The attached timer that handles this objects timeout deletion |
invalid | Whether the tgui list input is invalid or not (i.e. due to all list entries being null) |
items | The list of items (responses) provided on the TGUI window |
items_map | Buttons (strings specifically) mapped to the actual value (e.g. a mob or a verb) |
message | The textual body of the TGUI window |
modal_type | The TGUI modal to use for this popup |
start_time | The time at which the tgui_list_input was created, for displaying timeout progress. |
state | The TGUI UI state that will be returned in ui_state(). Default: always_state |
timeout | The lifespan of the tgui_list_input, after which the window will close and delete itself. |
title | The title of the TGUI window |
Procs | |
wait | Waits for a user's response to the tgui_list_input's prompt before returning. Returns early if the window was closed by the user. |
Var Details
choice
The button that the user has pressed, null if no selection has been made
closed
Boolean field describing if the tgui_list_input was closed by the user.
default
The default button to be selected
deletion_timer
The attached timer that handles this objects timeout deletion
invalid
Whether the tgui list input is invalid or not (i.e. due to all list entries being null)
items
The list of items (responses) provided on the TGUI window
items_map
Buttons (strings specifically) mapped to the actual value (e.g. a mob or a verb)
message
The textual body of the TGUI window
modal_type
The TGUI modal to use for this popup
start_time
The time at which the tgui_list_input was created, for displaying timeout progress.
state
The TGUI UI state that will be returned in ui_state(). Default: always_state
timeout
The lifespan of the tgui_list_input, after which the window will close and delete itself.
title
The title of the TGUI window
Proc Details
wait
Waits for a user's response to the tgui_list_input's prompt before returning. Returns early if the window was closed by the user.