closes #15278
This commit is contained in:
@@ -1531,7 +1531,7 @@
|
||||
if(!ismob(M))
|
||||
to_chat(usr, "this can only be used on instances of type /mob.")
|
||||
|
||||
var/speech = tgui_input_text("What will [key_name(M)] say?", "Force speech", "")// Don't need to sanitize, since it does that in say(), we also trust our admins.
|
||||
var/speech = tgui_input_text(usr, "What will [key_name(M)] say?", "Force speech", "")// Don't need to sanitize, since it does that in say(), we also trust our admins.
|
||||
if(!speech)
|
||||
return
|
||||
M.say(speech, forced = "admin speech")
|
||||
|
||||
@@ -215,7 +215,7 @@ GLOBAL_VAR_INIT(normal_ooc_colour, "#002eb8")
|
||||
else
|
||||
choices[C] = C
|
||||
choices = sortList(choices)
|
||||
var/selection = tgui_input_list("Please, select a player!", "Ignore", choices)
|
||||
var/selection = tgui_input_list(src, "Please, select a player!", "Ignore", choices)
|
||||
if(!selection || !(selection in choices))
|
||||
return
|
||||
selection = choices[selection]
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
/datum/action/chameleon_outfit/proc/select_outfit(mob/user)
|
||||
if(!user || !IsAvailable())
|
||||
return FALSE
|
||||
var/selected = tgui_input_list("Select outfit to change into", "Chameleon Outfit", outfit_options)
|
||||
var/selected = tgui_input_list(user, "Select outfit to change into", "Chameleon Outfit", outfit_options)
|
||||
if(!IsAvailable() || QDELETED(src) || QDELETED(user))
|
||||
return FALSE
|
||||
var/outfit_type = outfit_options[selected]
|
||||
@@ -178,7 +178,7 @@
|
||||
/datum/action/item_action/chameleon/change/proc/select_look(mob/user)
|
||||
var/obj/item/picked_item
|
||||
var/picked_name
|
||||
picked_name = tgui_input_list("Select [chameleon_name] to change into", "Chameleon [chameleon_name]", chameleon_list)
|
||||
picked_name = tgui_input_list(user, "Select [chameleon_name] to change into", "Chameleon [chameleon_name]", chameleon_list)
|
||||
if(!picked_name)
|
||||
return
|
||||
picked_item = chameleon_list[picked_name]
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
return 0
|
||||
|
||||
var/list/modes = list("Off", "Binary vitals", "Exact vitals", "Tracking beacon")
|
||||
var/switchMode = tgui_input_list("Select a sensor mode:", "Suit Sensor Mode", modes)
|
||||
var/switchMode = tgui_input_list(usr, "Select a sensor mode:", "Suit Sensor Mode", modes)
|
||||
if(get_dist(usr, src) > 1)
|
||||
to_chat(usr, "<span class='warning'>You have moved too far away!</span>")
|
||||
return
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
var/copy_values = FALSE
|
||||
|
||||
/obj/item/integrated_electronics/debugger/attack_self(mob/user)
|
||||
var/type_to_use = tgui_input_list("Please choose a type to use.","[src] type setting", list("string","number","ref","copy","null"))
|
||||
var/type_to_use = tgui_input_list(user, "Please choose a type to use.","[src] type setting", list("string","number","ref","copy","null"))
|
||||
if(!user.IsAdvancedToolUser())
|
||||
return
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ D [1]/ ||
|
||||
|
||||
|
||||
/datum/integrated_io/proc/ask_for_data_type(mob/user, var/default, var/list/allowed_data_types = list("string","number","null"))
|
||||
var/type_to_use = tgui_input_list("Please choose a type to use.","[src] type setting", allowed_data_types)
|
||||
var/type_to_use = tgui_input_list(user, "Please choose a type to use.","[src] type setting", allowed_data_types)
|
||||
if(!holder.check_interactivity(user))
|
||||
return
|
||||
|
||||
@@ -189,7 +189,7 @@ D [1]/ ||
|
||||
to_chat(user, "<span class='notice'>You input "+new_data+" into the pin.</span>")
|
||||
return new_data
|
||||
if("number")
|
||||
new_data = tgui_input_num("Now type in a number.","[src] number writing", isnum(default) ? default : null)
|
||||
new_data = tgui_input_num(user, "Now type in a number.","[src] number writing", isnum(default) ? default : null)
|
||||
if(isnum(new_data) && holder.check_interactivity(user) )
|
||||
to_chat(user, "<span class='notice'>You input [new_data] into the pin.</span>")
|
||||
return new_data
|
||||
|
||||
Reference in New Issue
Block a user