listed_options ![code/modules/events/_event_admin_setup.dm 20](git.png)
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 ![code/modules/events/_event_admin_setup.dm 31](git.png)
Picked list option to be applied.
input_text ![code/modules/events/_event_admin_setup.dm 22](git.png)
Text to ask the user, for example "What deal would you like to offer the crew?"
normal_run_option ![code/modules/events/_event_admin_setup.dm 24](git.png)
If set, picking this will be the same as running the event without admin setup.
special_run_option ![code/modules/events/_event_admin_setup.dm 27](git.png)
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