More standard tgui input conversions (#63464)

This commit is contained in:
Jeremiah
2021-12-24 03:04:18 -08:00
committed by GitHub
parent 36e5fcadd3
commit dcab86ba2c
64 changed files with 246 additions and 215 deletions
@@ -102,11 +102,11 @@
var/less_input_message
if(SSlag_switch.measures[DISABLE_DEAD_KEYLOOP])
less_input_message = " - Notice: Observer freelook is currently disabled."
var/this_is_like_playing_right = alert(usr, "Are you sure you wish to observe? You will not be able to play this round![less_input_message]","Player Setup", "Yes", "No")
if(QDELETED(src) || !src.client || this_is_like_playing_right != "Yes")
var/this_is_like_playing_right = tgui_alert(usr, "Are you sure you wish to observe? You will not be able to play this round![less_input_message]", "Observe", "Yes", "No")
if(this_is_like_playing_right != "Yes")
return FALSE
if(QDELETED(src) || !src.client)
ready = PLAYER_NOT_READY
src << browse(null, "window=playersetup") //closes the player setup window
return FALSE
var/mob/dead/observer/observer = new()