Tg panel patch 2 (#8085)

Co-authored-by: Cadyn Bombaci <cadynspacetechguy@gmail.com>
This commit is contained in:
Kashargul
2024-05-15 13:42:13 +02:00
committed by GitHub
parent a63a919fcb
commit e28fa96705
264 changed files with 993 additions and 823 deletions

View File

@@ -57,7 +57,7 @@
//verbs or action buttons...?
/mob/living/carbon/human/proc/gargoyle_transformation()
set name = "Gargoyle - Petrification"
set category = "Abilities"
set category = "Abilities.Gargoyle"
set desc = "Turn yourself into (or back from) being a gargoyle."
if (stat == DEAD)
@@ -78,7 +78,7 @@
/mob/living/carbon/human/proc/gargoyle_pause()
set name = "Gargoyle - Pause"
set category = "Abilities"
set category = "Abilities.Gargoyle"
set desc = "Pause your energy while standing still, so you don't use up any more, though you will lose a small amount upon moving again."
if (stat)
@@ -93,7 +93,7 @@
/mob/living/carbon/human/proc/gargoyle_checkenergy()
set name = "Gargoyle - Check Energy"
set category = "Abilities"
set category = "Abilities.Gargoyle"
set desc = "Check how much energy you have remaining as a gargoyle."
var/datum/component/gargoyle/comp = GetComponent(/datum/component/gargoyle)

View File

@@ -47,7 +47,7 @@
/mob/living/carbon/human/proc/queen_aura_toggle()
set name = "Commanding Aura"
set category = "Abilities"
set category = "Abilities.Xeno"
set desc = "Toggles your Xenomorph Queen buff aura."
if(stat == DEAD) //Disable the verb while we're dead

View File

@@ -295,7 +295,7 @@
// I am not making a new file just for vr-specific mob procs.
/mob/living/carbon/human/proc/vr_transform_into_mob()
set name = "Transform Into Creature"
set category = "Abilities"
set category = "Abilities.VR"
set desc = "Become a different creature"
var/tf = null
@@ -311,14 +311,14 @@
/mob/living/proc/vr_revert_mob_tf()
set name = "Revert Transformation"
set category = "Abilities"
set category = "Abilities.VR"
revert_mob_tf()
// Exiting VR but for ghosts
/mob/living/carbon/human/proc/fake_exit_vr()
set name = "Log Out Of Virtual Reality"
set category = "Abilities"
set category = "Abilities.VR"
if(tgui_alert(usr, "Would you like to log out of virtual reality?", "Log out?", list("Yes", "No")) == "Yes")
release_vore_contents(TRUE)

View File

@@ -1,7 +1,7 @@
GLOBAL_VAR_INIT(global_vantag_hud, 0)
/client/proc/toggle_vantag_hud_global(mob/target as mob)
set category = "Fun"
set category = "Fun.Event Kit"
set name = "Toggle Global Event HUD"
set desc = "Give everyone the Event HUD."

View File

@@ -2,7 +2,7 @@
/client/proc/tgui_admin_lists()
set name = "TGUI Admin Lists"
set desc = "Allows to have some procs with searchable lists."
set category = "Admin"
set category = "Admin.Game"
if(!check_rights(R_ADMIN|R_EVENT))
return

View File

@@ -10,7 +10,7 @@
/client/verb/toggle_random_emote_pitch()
set name = "Toggle Random Emote Pitch"
set category = "Preferences"
set category = "Preferences.Character"
set desc = "Toggles whether or not emotes with sound you make will have random pitch."
var/pref_path = /datum/client_preference/random_emote_pitch
@@ -25,7 +25,7 @@
/client/verb/toggle_autotranscore()
set name = "Toggle Automatic Transcore Notification"
set category = "Preferences"
set category = "Preferences.Character"
set desc = "Toggles whether or not your death with a backup implant will automatically trigger a transcore notification after a few minutes."
var/pref_path = /datum/client_preference/autotranscore

View File

@@ -0,0 +1,22 @@
/client/verb/update_ping(time as num)
set instant = TRUE
set name = ".update_ping"
var/ping = pingfromtime(time)
lastping = ping
if (!avgping)
avgping = ping
else
avgping = MC_AVERAGE_SLOW(avgping, ping)
/client/proc/pingfromtime(time)
return ((world.time+world.tick_lag*TICK_USAGE_REAL/100)-time)*100
/client/verb/display_ping(time as num)
set instant = TRUE
set name = ".display_ping"
to_chat(src, span_notice("Round trip ping took [round(pingfromtime(time),1)]ms"))
/client/verb/ping()
set name = "Ping"
set category = "OOC.Debug"
winset(src, null, "command=.display_ping+[world.time+world.tick_lag*TICK_USAGE_REAL/100]")

View File

@@ -12,7 +12,7 @@
// Persistence vars not included as we probably don't want losing limbs in the game mean losing limbs in real life. Definitely can't backfire.
/mob/observer/dead/verb/fake_enter_vr()
set name = "Join virtual reality"
set category = "Ghost"
set category = "Ghost.Join"
set desc = "Log into NanoTrasen's local virtual reality server."
/* Temp removal while I figure out how to reduce the respawn time to 1 minute

View File

@@ -1,6 +1,6 @@
/mob/living/carbon/human/verb/hide_nutrition()
set name = "Show/Hide Nutrition Levels"
set category = "IC"
set category = "IC.Settings"
set desc = "Allow other player to see your current nutrition level or not."
nutrition_hidden = !nutrition_hidden
to_chat(src, "Players will [nutrition_hidden ? "no longer" : "now"] see your nutrition levels.")
@@ -8,7 +8,7 @@
/mob/living/carbon/human/proc/toggle_speech_sounds()
set name = "Toggle Species Speech Sounds"
set desc = "Toggle if your species defined speech sound has a chance of playing on a Say"
set category = "IC"
set category = "IC.Settings"
if(stat)
to_chat(src, "<span class='warning'>You must be awake and standing to perform this action!</span>")

View File

@@ -39,21 +39,21 @@
/mob/living/carbon/human/verb/hide_headset()
set name = "Show/Hide Headset"
set category = "IC"
set category = "IC.Settings"
set desc = "Toggle headset worn icon visibility."
hide_headset = !hide_headset
update_inv_ears()
/mob/living/carbon/human/verb/hide_glasses()
set name = "Show/Hide Glasses"
set category = "IC"
set category = "IC.Settings"
set desc = "Toggle glasses worn icon visibility."
hide_glasses = !hide_glasses
update_inv_glasses()
/mob/living/carbon/human/verb/flip_lying()
set name = "Flip Resting Direction"
set category = "Abilities"
set category = "Abilities.General"
set desc = "Switch your horizontal direction while prone."
if(isnull(resting_dir))
resting_dir = FALSE
@@ -62,7 +62,7 @@
/mob/living/carbon/human/proc/synth_reag_toggle()
set name = "Toggle Reagent Processing"
set category = "Abilities"
set category = "Abilities.Vore"
set desc = "Toggle reagent processing as synth."
synth_reag_processing = !synth_reag_processing
@@ -70,7 +70,7 @@
/mob/living/carbon/human/verb/create_area()
set name = "Create Area"
set desc = "Create an area in a enclosed space, making it able to be powered by an APC."
set category = "IC"
set category = "IC.Game"
if(stat || world.time < last_special)
to_chat(usr, "<span class='warning'>You recently tried to create an area. Wait a while before using it again.</span>")

View File

@@ -1,7 +1,7 @@
/mob/living/carbon/human/proc/shapeshifter_reassemble()
set name = "Complete Reform"
set category = "Abilities"
set category = "Abilities.Shapeshift"
if(stat || world.time < last_special)
return

View File

@@ -92,49 +92,49 @@
/mob/living/simple_mob/protean_blob/proc/nano_partswap()
set name = "Ref - Single Limb"
set desc = "Allows you to replace and reshape your limbs as you see fit."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
humanform.nano_partswap()
/mob/living/simple_mob/protean_blob/proc/nano_regenerate()
set name = "Total Reassembly (wip)"
set desc = "Completely reassemble yourself from whatever save slot you have loaded in preferences. Assuming you meet the requirements."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
humanform.nano_regenerate()
/mob/living/simple_mob/protean_blob/proc/nano_blobform()
set name = "Toggle Blobform"
set desc = "Switch between amorphous and humanoid forms."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
humanform.nano_blobform()
/mob/living/simple_mob/protean_blob/proc/nano_metalnom()
set name = "Ref - Store Metals"
set desc = "If you're holding a stack of material, you can consume some and store it for later."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
humanform.nano_metalnom()
/mob/living/simple_mob/protean_blob/proc/nano_rig_transform()
set name = "Modify Form - Hardsuit"
set desc = "Allows a protean to retract its mass into its hardsuit module at will."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
humanform.nano_rig_transform()
/mob/living/simple_mob/protean_blob/proc/appearance_switch()
set name = "Switch Blob Appearance"
set desc = "Allows a protean blob to switch its outwards appearance."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
humanform.appearance_switch()
/mob/living/simple_mob/protean_blob/proc/nano_latch()
set name = "Latch/Unlatch host"
set desc = "Allows a protean to forcibly latch or unlatch from a host."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
humanform.nano_latch()
@@ -343,7 +343,7 @@
/mob/living/simple_mob/protean_blob/verb/prot_hide()
set name = "Hide Self"
set desc = "Disperses your mass into a thin veil, making a trap to snatch prey with, or simply hide."
set category = "Abilities"
set category = "Abilities.Protean"
if(!hiding)
cut_overlays()
@@ -546,7 +546,7 @@
/mob/living/proc/usehardsuit()
set name = "Utilize Hardsuit Interface"
set desc = "Allows a protean blob to open hardsuit interface."
set category = "Abilities"
set category = "Abilities.Protean"
if(istype(loc, /obj/item/weapon/rig/protean))
var/obj/item/weapon/rig/protean/prig = loc

View File

@@ -6,7 +6,7 @@
/mob/living/carbon/human/proc/nano_partswap()
set name = "Ref - Single Limb"
set desc = "Allows you to replace and reshape your limbs as you see fit."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
var/mob/living/caller = src
@@ -92,7 +92,7 @@
/mob/living/carbon/human/proc/nano_regenerate()
set name = "Total Reassembly"
set desc = "Fully repair yourself or reload your appearance from whatever character slot you have loaded."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
var/mob/living/caller = src
if(temporary_form)
@@ -140,7 +140,7 @@
/mob/living/carbon/human/proc/nano_copy_body()
set name = "Copy Form"
set desc = "If you are aggressively grabbing someone, with their consent, you can turn into a copy of them. (Without their name)."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
var/mob/living/caller = src
if(temporary_form)
@@ -211,7 +211,7 @@
/mob/living/carbon/human/proc/nano_metalnom()
set name = "Ref - Store Metals"
set desc = "If you're holding a stack of material, you can consume some and store it for later."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
var/mob/living/caller = src
@@ -262,7 +262,7 @@
/mob/living/carbon/human/proc/nano_blobform(var/forced)
set name = "Toggle Blobform"
set desc = "Switch between amorphous and humanoid forms."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
if(nano_dead_check(src))
@@ -300,7 +300,7 @@
/mob/living/carbon/human/proc/nano_change_fitting()
set name = "Change Species Fit"
set desc = "Tweak your shape to change what suits you fit into (and their sprites!)."
set category = "Abilities"
set category = "Abilities.Protean"
if(stat)
to_chat(src,"<span class='warning'>You must be awake and standing to perform this action!</span>")
@@ -317,7 +317,7 @@
/mob/living/carbon/human/proc/nano_rig_transform(var/forced)
set name = "Modify Form - Hardsuit"
set desc = "Allows a protean to retract its mass into its hardsuit module at will."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
var/mob/living/caller = src
@@ -374,7 +374,7 @@
/mob/living/carbon/human/proc/appearance_switch()
set name = "Switch Blob Appearance"
set desc = "Allows a protean blob to switch its outwards appearance."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
var/datum/species/protean/S = src.species
var/mob/living/caller = src
@@ -543,7 +543,7 @@
/mob/living/carbon/human/proc/nano_latch()
set name = "Latch/Unlatch host"
set desc = "Allows a protean to forcibly latch or unlatch from a host."
set category = "Abilities"
set category = "Abilities.Protean"
set hidden = 1
var/mob/living/caller = src
var/mob/living/carbon/human/target

View File

@@ -207,7 +207,7 @@
/mob/living/carbon/human/proc/plant_weak()
set name = "Plant Weeds (150)"
set desc = "Plants some alien weeds."
set category = "Abilities"
set category = "Abilities.Alien"
if(check_alien_ability(150,1,O_RESIN))
visible_message("<span class='alium'><B>[src] has planted some alien weeds!</B></span>")
@@ -217,7 +217,7 @@
/mob/living/carbon/human/proc/check_plasma_amount(mob/living/carbon/human/M as mob)
set name = "Check Plasma Reserves"
set category = "Abilities"
set category = "Abilities.Alien"
var/obj/item/organ/internal/xenos/plasmavessel/I = M.internal_organs_by_name[O_PLASMA]
if(!istype(I))
@@ -230,7 +230,7 @@
/mob/living/carbon/human/proc/resin_weak() // Technically stronger in some aspects.
set name = "Secrete Resin (25)"
set desc = "Secrete tough, malleable resin in front of us."
set category = "Abilities"
set category = "Abilities.Alien"
var/list/options = list("resin door","resin wall","resin membrane","nest","resin blob")
for(var/option in options)

View File

@@ -53,7 +53,7 @@ Maybe later, gotta figure out a way to click yourself when in a locker etc.
/mob/living/proc/click_self()
set name = "Click Self"
set desc = "Clicks yourself. Useful when you can't see yourself."
set category = "IC"
set category = "IC.Game"
ClickOn(src)
@@ -179,7 +179,7 @@ Maybe later, gotta figure out a way to click yourself when in a locker etc.
/mob/living/proc/shapeshift_form()
set name = "Shapeshift Form"
set category = "Abilities"
set category = "Abilities.Shapeshift"
set desc = "Shape shift between set mob forms. (Requires a spawned mob to be varedited into the user's tf_form var as mob reference.)"
if(!istype(tf_form))
to_chat(src, "<span class='notice'>No shapeshift form set. (Requires a spawned mob to be varedited into the user's tf_form var as mob reference.)</span>")

View File

@@ -9,7 +9,7 @@
/mob/living/silicon/robot/verb/purge_nutrition()
set name = "Purge Nutrition"
set category = "IC"
set category = "Abilities.Vore"
set desc = "Allows you to clear out most of your nutrition if needed."
if (stat != CONSCIOUS || nutrition <= 1000)

View File

@@ -447,7 +447,7 @@
/mob/living/simple_mob/proc/contort()
set name = "contort"
set desc = "Allows to hide beneath tables or certain items. Toggled on or off."
set category = "Abilities"
set category = "Abilities.Synx"
if(stat == DEAD || paralysis || weakened || stunned || restrained())
return
@@ -468,7 +468,7 @@
/mob/living/simple_mob/animal/synx/proc/disguise()
set name = "Toggle Form"
set desc = "Switch between amorphous and humanoid forms."
set category = "Abilities"
set category = "Abilities.Synx"
if(stat == DEAD || paralysis || weakened || stunned || restrained())
return
@@ -493,7 +493,7 @@
/mob/living/simple_mob/animal/synx/proc/randomspeech()
set name = "speak"
set desc = "Take a sentence you heard and speak it."
set category = "Abilities"
set category = "Abilities.Synx"
if(speak && voices)
handle_mimic()
else
@@ -514,7 +514,7 @@
/mob/living/simple_mob/animal/synx/proc/sonar_ping()
set name = "Listen In"
set desc = "Allows you to listen in to movement and noises around you."
set category = "Abilities"
set category = "Abilities.Synx"
if(incapacitated())
to_chat(src, "<span class='warning'>You need to recover before you can use this ability.</span>")
@@ -563,7 +563,7 @@
/mob/living/simple_mob/animal/synx/proc/distend_stomach()
set name = "Distend Stomach"
set desc = "Allows you to throw up your stomach, giving your attacks burn damage at the cost of your stomach contents going everywhere. Yuck."
set category = "Abilities"
set category = "Abilities.Synx"
if(transformed)
to_chat(src,"<span class='warning'>Your limbs are in the way!</span>") //Kind of a weak excuse but since you already can't transform when your stomach is out, this avoids situations calling a sprite that doesn't exist and lightens my workload on making and implementing them
@@ -668,7 +668,7 @@
/mob/living/simple_mob/animal/synx/proc/set_style()
set name = "Set Style"
set desc = "Customise your icons."
set category = "Abilities"
set category = "Abilities.Synx"
var/list/options = list("Body","Horns","Marks","Eyes")
for(var/option in options)
@@ -770,7 +770,7 @@
/*/mob/living/simple_mob/animal/synx/proc/honk()
set name = "HONK"
set desc = "TAAA RAINBOW"
set category = "Abilities"
set category = "Abilities.Synx"
icon_state = "synx_pet_rainbow"
icon_living = "synx_pet_rainbow"
playsound(src.loc, 'sound/items/bikehorn.ogg', 50, 1)

View File

@@ -23,7 +23,7 @@
set name = "Toggle Vore Sprite"
set desc = "Toggle visibility of changed mob sprite when you have eaten other things."
set category = "Abilities"
set category = "Abilities.Vore"
if(!vore_icons && !vore_icons_cache)
to_chat(src,"<span class='warning'>This simplemob has no vore sprite.</span>")
@@ -41,7 +41,7 @@
/mob/living/simple_mob/verb/toggle_speech_sounds()
set name = "Toggle Species Speech Sounds"
set desc = "Toggle if your species defined speech sound has a chance of playing on a Say"
set category = "IC"
set category = "IC.Mob"
if(stat)
to_chat(src, "<span class='warning'>You must be awake and standing to perform this action!</span>")
@@ -104,7 +104,7 @@
/mob/living/simple_mob/proc/use_headset()
set name = "Use Headset"
set desc = "Opens your headset's GUI, if you have one."
set category = "IC"
set category = "Abilities.Mob"
if(istype(mob_radio, /obj/item/device/radio/headset))
mob_radio.tgui_interact(src)
@@ -114,7 +114,7 @@
/mob/living/simple_mob/proc/use_pda()
set name = "Use PDA"
set desc = "Opens your PDA's GUI, if you have one."
set category = "IC"
set category = "Abilities.Mob"
if(istype(myid, /obj/item/device/pda))
myid.tgui_interact(src)

View File

@@ -108,7 +108,7 @@
/mob/living/simple_mob/proc/pounce_toggle()
set name = "Toggle Pouncing"
set desc = "Toggle pouncing. Doubleclick to pounce."
set category = "Abilities"
set category = "Abilities.Mob"
if(pouncing)
to_chat(src, "<span class='notice'>Pouncing toggled off.</span>")
@@ -248,7 +248,7 @@
/mob/living/simple_mob/proc/neurotoxin()
set name = "Toggle Neurotoxic Spit"
set desc = "Readies a neurotoxic spit, which paralyzes the target for a short time if they are not wearing protective gear."
set category = "Abilities"
set category = "Abilities.Mob"
if(spitting)
to_chat(src, "<span class='notice'>You stop preparing to spit.</span>")
@@ -262,7 +262,7 @@
/mob/living/simple_mob/proc/acidspit()
set name = "Toggle Acid Spit"
set desc = "Readies an acidic spit, which burns the target if they are not wearing protective gear."
set category = "Abilities"
set category = "Abilities.Mob"
if(spitting)
to_chat(src, "<span class='notice'>You stop preparing to spit.</span>")
@@ -276,7 +276,7 @@
/mob/living/simple_mob/proc/corrosive_acid(O as obj|turf in oview(1)) //If they right click to corrode, an error will flash if its an invalid target./N
set name = "Corrosive Acid"
set desc = "Drench an object in acid, destroying it over time."
set category = "Abilities"
set category = "Abilities.Mob"
if(!(O in oview(1)))
to_chat(src, "<span class='notice'>[O] is too far away.</span>")
@@ -313,7 +313,7 @@
/mob/living/simple_mob/proc/speen(var/range = 2)
set name = "Spin Attack"
set desc = "Spins to strike enemies away from you."
set category = "Abilities"
set category = "Abilities.Mob"
if(world.time < speen_last)
to_chat(src, "<span class='warning'>You cannot spin again so soon.</span>")

View File

@@ -6,7 +6,7 @@
/mob/living/simple_mob/vore/bigdragon/proc/export_style()
set name = "Export style string"
set desc = "Export a string of text that can be used to instantly get the current style back using the import style verb"
set category = "Abilities"
set category = "Abilities.Settings"
var/output_style = jointext(list(
overlay_colors["Underbelly"],
under,
@@ -25,7 +25,7 @@
/mob/living/simple_mob/vore/bigdragon/proc/import_style()
set name = "Import style string"
set desc = "Import a string of text that was made using the import style verb to get back that style"
set category = "Abilities"
set category = "Abilities.Settings"
var/input_style
input_style = sanitizeSafe(input(src,"Paste the style string you exported with Export Style.", "Style loading","") as text, MAX_MESSAGE_LEN)
if(input_style)

View File

@@ -39,7 +39,7 @@
/mob/living/simple_mob/shadekin/proc/phase_strength_toggle()
set name = "Toggle Phase Strength"
set desc = "Toggle strength of phase. Gentle but slower, or faster but destructive to lights."
set category = "Abilities"
set category = "Abilities.Shadekin"
if(phase_gentle)
to_chat(src, "<span class='notice'>Phasing toggled to Normal. You may damage lights.</span>")

View File

@@ -8,7 +8,7 @@
/mob/living/simple_mob/proc/pick_size()
set name = "Pick Size"
set category = "Abilities"
set category = "Abilities.Settings"
if(picked_size)
to_chat(src, "<span class='notice'>You have already picked a size! If you picked the wrong size, ask an admin to change your picked_size variable to 0.</span>")
@@ -28,7 +28,7 @@
/mob/living/simple_mob/proc/pick_color()
set name = "Pick Color"
set category = "Abilities"
set category = "Abilities.Settings"
set desc = "You can set your color!"
if(picked_color)
to_chat(src, "<span class='notice'>You have already picked a color! If you picked the wrong color, ask an admin to change your picked_color variable to 0.</span>")

View File

@@ -1,7 +1,7 @@
/mob/living/simple_mob/xeno_ch/proc/xeno_build()
set name = "Build Resin Structure"
set desc = "Build a xenomorph resin structure."
set category = "Abilities"
set category = "Abilities.Xeno"
var/list/options = list("Resin Door","Resin Membrane","Nest","Resin Wall","Weed Node")
for(var/option in options)
@@ -114,4 +114,4 @@
acidspit_action.Grant(src)
corrode_action.Grant(src)
pounce_action.Grant(src)
spin_action.Grant(src)
spin_action.Grant(src)

View File

@@ -42,7 +42,7 @@
/client/verb/tgui_feedback()
set name = "Submit TGUI Feedback"
set category = "OOC"
set category = "OOC.Debug"
var/datum/tgui_feedback/feedback = new()
feedback.tgui_interact(usr)

View File

@@ -44,7 +44,7 @@
//admin proc
/client/proc/cmd_mentor_ticket_panel()
set name = "Mentor Ticket List"
set category = "Admin"
set category = "Admin.Misc"
var/browse_to
@@ -111,7 +111,7 @@
//admin proc
/client/proc/cmd_admin_ticket_panel()
set name = "Show Ticket List"
set category = "Admin"
set category = "Admin.Misc"
if(!check_rights(R_ADMIN|R_MOD|R_DEBUG|R_EVENT, TRUE))
return