TGUIfies some VV actions, replaces the actions dropdown with a searchable one (#95480)

This commit is contained in:
SmArtKar
2026-03-29 21:47:29 -04:00
committed by GitHub
parent 1ee927a447
commit 11fbb59049
20 changed files with 274 additions and 227 deletions
+5 -5
View File
@@ -421,13 +421,13 @@ ADMIN_VERB(remove_spell, R_FUN, "Remove Spell", ADMIN_VERB_NO_DESCRIPTION, ADMIN
BLACKBOX_LOG_ADMIN_VERB("Remove Spell")
ADMIN_VERB(give_disease, R_FUN, "Give Disease", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, mob/living/victim)
var/datum/disease/D = input(user, "Choose the disease to give to that guy", "ACHOO") as null|anything in sort_list(SSdisease.diseases, GLOBAL_PROC_REF(cmp_typepaths_asc))
if(!D)
var/datum/disease/disease = tgui_input_list(user, "Choose the disease to give to that guy", "ACHOO", sort_list(SSdisease.diseases, GLOBAL_PROC_REF(cmp_typepaths_asc)))
if(!disease)
return
victim.ForceContractDisease(new D, FALSE, TRUE)
victim.ForceContractDisease(new disease, FALSE, TRUE)
BLACKBOX_LOG_ADMIN_VERB("Give Disease")
log_admin("[key_name(user)] gave [key_name(victim)] the disease [D].")
message_admins(span_adminnotice("[key_name_admin(user)] gave [key_name_admin(victim)] the disease [D]."))
log_admin("[key_name(user)] gave [key_name(victim)] the disease [disease].")
message_admins(span_adminnotice("[key_name_admin(user)] gave [key_name_admin(victim)] the disease [disease]."))
ADMIN_VERB_AND_CONTEXT_MENU(object_say, R_FUN, "OSay", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, obj/speaker in world)
var/message = tgui_input_text(user, "What do you want the message to be?", "Make Sound", encode = FALSE)