mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
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:
committed by
GitHub
parent
854c17e742
commit
0ff8eec5ff
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user