mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-03-24 20:52:53 +00:00
simple ghost pod find (#17909)
* simple ghost spawn rewrite * neutral * . * don't close * migrate vore spawn * use a searchable list * move some more verbs * allow special role spawns * add key * . * fix that part * announce for logging * filter those * typ o * . * . * Update SelectionList.tsx * . * that * . --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
set name = "Check Player Attack Logs"
|
||||
set desc = "Check a player's attack logs."
|
||||
|
||||
show_cmd_admin_check_player_logs(M)
|
||||
|
||||
//Views specific attack logs belonging to one player.
|
||||
/client/proc/show_cmd_admin_check_player_logs(mob/living/M)
|
||||
var/dat = span_bold("[M]'s Attack Log:<HR>")
|
||||
dat += span_bold("Viewing attack logs of [M]") + " - (Played by ([key_name(M)]).<br>"
|
||||
if(M.mind)
|
||||
@@ -33,8 +36,10 @@
|
||||
set category = "Admin.Logs"
|
||||
set name = "Check Player Dialogue Logs"
|
||||
set desc = "Check a player's dialogue logs."
|
||||
show_cmd_admin_check_dialogue_logs(M)
|
||||
|
||||
//Views specific dialogue logs belonging to one player.
|
||||
/client/proc/show_cmd_admin_check_dialogue_logs(mob/living/M)
|
||||
var/dat = span_bold("[M]'s Dialogue Log:<HR>")
|
||||
dat += span_bold("Viewing say and emote logs of [M]") + " - (Played by ([key_name(M)]).<br>"
|
||||
if(M.mind)
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(resize, (R_ADMIN|R_FUN|R_VAREDIT), "Resize", "Resizes any living mob without any restrictions on size.", "Fun.Event Kit", mob/living/L in GLOB.mob_list)
|
||||
user.do_resize(L)
|
||||
|
||||
/client/proc/do_resize(var/mob/living/L)
|
||||
var/size_multiplier = tgui_input_number(usr, "Input size multiplier.", "Resize", 1, round_value=FALSE)
|
||||
if(!size_multiplier)
|
||||
return //cancelled
|
||||
@@ -8,11 +11,11 @@ ADMIN_VERB_AND_CONTEXT_MENU(resize, (R_ADMIN|R_FUN|R_VAREDIT), "Resize", "Resize
|
||||
var/very_big = is_extreme_size(size_multiplier)
|
||||
|
||||
if(very_big && can_be_big) // made an extreme size in an area that allows it, don't assume adminbuse
|
||||
to_chat(user, span_warning("[L] will lose this size upon moving into an area where this size is not allowed."))
|
||||
to_chat(src, span_warning("[L] will lose this size upon moving into an area where this size is not allowed."))
|
||||
else if(very_big) // made an extreme size in an area that doesn't allow it, assume adminbuse
|
||||
to_chat(user, span_warning("[L] will retain this normally unallowed size outside this area."))
|
||||
to_chat(src, span_warning("[L] will retain this normally unallowed size outside this area."))
|
||||
|
||||
L.resize(size_multiplier, animate = TRUE, uncapped = TRUE, ignore_prefs = TRUE)
|
||||
|
||||
log_and_message_admins("has changed [key_name(L)]'s size multiplier to [size_multiplier].", user)
|
||||
log_and_message_admins("has changed [key_name(L)]'s size multiplier to [size_multiplier].", src)
|
||||
feedback_add_details("admin_verb","RESIZE")
|
||||
|
||||
29
code/modules/admin/verbs/tgui_verbs.dm
Normal file
29
code/modules/admin/verbs/tgui_verbs.dm
Normal file
@@ -0,0 +1,29 @@
|
||||
//Allows some list search inputs
|
||||
/client/proc/tgui_admin_lists()
|
||||
set name = "TGUI Admin Lists"
|
||||
set desc = "Allows to have some procs with searchable lists."
|
||||
set category = "Admin.Game"
|
||||
if(!check_rights(R_ADMIN|R_EVENT))
|
||||
return
|
||||
|
||||
var/list/modification_options = list(TGUI_VIEW_ATTACK_LOGS, TGUI_VIEW_DIALOG_LOGS, TGUI_RESIZE)
|
||||
|
||||
|
||||
var/tgui_list_choice = tgui_input_list(src, "Select the verb you would like to use with a tgui input","Choice", modification_options)
|
||||
if(!tgui_list_choice || tgui_list_choice == "Cancel")
|
||||
return
|
||||
|
||||
log_and_message_admins("[key_name(src)] has used TGUI Admin Lists with ([tgui_list_choice])].")
|
||||
feedback_add_details("admin_verb","TGUIADL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
switch(tgui_list_choice)
|
||||
if(TGUI_VIEW_ATTACK_LOGS)
|
||||
var/mob/living/L = tgui_input_list(src, "Check a player's attack logs.", "Check Player Attack Logs", GLOB.mob_list)
|
||||
show_cmd_admin_check_player_logs(L)
|
||||
if(TGUI_VIEW_DIALOG_LOGS)
|
||||
var/mob/living/L = tgui_input_list(src, "Check a player's dialogue logs.", "Check Player Dialogue Logs", GLOB.mob_list)
|
||||
show_cmd_admin_check_dialogue_logs(L)
|
||||
if(TGUI_RESIZE)
|
||||
var/mob/living/L = tgui_input_list(src, "Resizes any living mob without any restrictions on size.", "Resize", GLOB.mob_list)
|
||||
if(L)
|
||||
do_resize(L)
|
||||
Reference in New Issue
Block a user