listed_options
A very common pattern is picking from a tgui list input, so this does that.
Supply a list in get_list
and prompt admins will have the admin pick from it or cancel.
Vars | |
chosen | Picked list option to be applied. |
---|---|
input_text | Text to ask the user, for example "What deal would you like to offer the crew?" |
normal_run_option | If set, picking this will be the same as running the event without admin setup. |
special_run_option | if you want a special button, this will add it. Remember to actually handle that case for chosen in apply_to_event
Example is in scrubber_overflow.dm |
Var Details
chosen
Picked list option to be applied.
input_text
Text to ask the user, for example "What deal would you like to offer the crew?"
normal_run_option
If set, picking this will be the same as running the event without admin setup.
special_run_option
if you want a special button, this will add it. Remember to actually handle that case for chosen in apply_to_event
Example is in scrubber_overflow.dm