Adds labels to RPD and slightly refactors pipe code (#28206)

* it compiles now

* RPD works normally now.

* Implements pipelabeling

* Adds the labels to sensors and meters

* adds label investigation and enlarges the ui slightly to better fit the text input

* changes log message

* Update tgui.bundle.js

* autodoc

* review changes
This commit is contained in:
Migratingcocofruit
2025-03-16 20:01:37 +02:00
committed by GitHub
parent 854c17e742
commit 0ff8eec5ff
5 changed files with 221 additions and 365 deletions
+4
View File
@@ -40,6 +40,7 @@
var/primary_sound = 'sound/machines/click.ogg'
var/alt_sound = null
var/auto_wrench_toggle = TRUE
var/pipe_label = null
//Lists of things
var/list/mainmenu = list(
@@ -115,6 +116,7 @@
else if(!iconrotation) //If user selected a rotation
P.dir = user.dir
to_chat(user, "<span class='notice'>[src] rapidly dispenses [P]!</span>")
P.label = pipe_label
automatic_wrench_down(user, P)
activate_rpd(TRUE)
@@ -266,6 +268,8 @@
mode = isnum(params[action]) ? params[action] : text2num(params[action])
if("auto_wrench_toggle")
auto_wrench_toggle = !auto_wrench_toggle
if("set_label")
pipe_label = params[action]
//RPD radial menu
/obj/item/rpd/proc/check_menu(mob/living/user)