tgui_list_input ![code/modules/tgui_input/list.dm 44](git.png)
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 item to be selected |
items | The list of items (responses) provided on the TGUI window |
items_map | Items (strings specifically) mapped to the actual value (e.g. a mob or a verb) |
message | The textual body of the TGUI window |
start_time | The time at which the tgui_list_input was created, for displaying timeout progress. |
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 ![code/modules/tgui_input/list.dm 54](git.png)
The button that the user has pressed, null if no selection has been made
closed ![code/modules/tgui_input/list.dm 64](git.png)
Boolean field describing if the tgui_list_input was closed by the user.
default ![code/modules/tgui_input/list.dm 56](git.png)
The default item to be selected
items ![code/modules/tgui_input/list.dm 50](git.png)
The list of items (responses) provided on the TGUI window
items_map ![code/modules/tgui_input/list.dm 52](git.png)
Items (strings specifically) mapped to the actual value (e.g. a mob or a verb)
message ![code/modules/tgui_input/list.dm 48](git.png)
The textual body of the TGUI window
start_time ![code/modules/tgui_input/list.dm 58](git.png)
The time at which the tgui_list_input was created, for displaying timeout progress.
timeout ![code/modules/tgui_input/list.dm 60](git.png)
The lifespan of the tgui_list_input, after which the window will close and delete itself.
title ![code/modules/tgui_input/list.dm 46](git.png)
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.