mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
rid of old span macros
This commit is contained in:
@@ -21,63 +21,63 @@
|
||||
return // don't set a label
|
||||
|
||||
if(!labels_left)
|
||||
to_chat(user, SPAN_WARNING("\The [src] has no labels left."))
|
||||
to_chat(user, span_warning("\The [src] has no labels left."))
|
||||
return
|
||||
if(!label || !length(label))
|
||||
to_chat(user, SPAN_WARNING("\The [src] has no label text set."))
|
||||
to_chat(user, span_warning("\The [src] has no label text set."))
|
||||
return
|
||||
if(length(A.name) + length(label) > 64)
|
||||
to_chat(user, SPAN_WARNING("\The [src]'s label too big."))
|
||||
to_chat(user, span_warning("\The [src]'s label too big."))
|
||||
return
|
||||
if(istype(A, /mob/living/silicon/robot/platform))
|
||||
var/mob/living/silicon/robot/platform/P = A
|
||||
if(!P.allowed(user))
|
||||
to_chat(usr, SPAN_WARNING("Access denied."))
|
||||
to_chat(usr, span_warning("Access denied."))
|
||||
else if(P.client || P.key)
|
||||
to_chat(user, SPAN_NOTICE("You rename \the [P] to [label]."))
|
||||
to_chat(P, SPAN_NOTICE("\The [user] renames you to [label]."))
|
||||
to_chat(user, span_notice("You rename \the [P] to [label]."))
|
||||
to_chat(P, span_notice("\The [user] renames you to [label]."))
|
||||
P.custom_name = label
|
||||
P.SetName(P.custom_name)
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("\The [src] is inactive and cannot be renamed."))
|
||||
to_chat(user, span_warning("\The [src] is inactive and cannot be renamed."))
|
||||
return
|
||||
if(ishuman(A))
|
||||
to_chat(user, SPAN_WARNING("The label refuses to stick to [A.name]."))
|
||||
to_chat(user, span_warning("The label refuses to stick to [A.name]."))
|
||||
return
|
||||
if(issilicon(A))
|
||||
to_chat(user, SPAN_WARNING("The label refuses to stick to [A.name]."))
|
||||
to_chat(user, span_warning("The label refuses to stick to [A.name]."))
|
||||
return
|
||||
if(isobserver(A))
|
||||
to_chat(user, SPAN_WARNING("[src] passes through [A.name]."))
|
||||
to_chat(user, span_warning("[src] passes through [A.name]."))
|
||||
return
|
||||
if(istype(A, /obj/item/reagent_containers/glass))
|
||||
to_chat(user, SPAN_WARNING("The label can't stick to the [A.name] (Try using a pen)."))
|
||||
to_chat(user, span_warning("The label can't stick to the [A.name] (Try using a pen)."))
|
||||
return
|
||||
if(istype(A, /obj/machinery/portable_atmospherics/hydroponics))
|
||||
var/obj/machinery/portable_atmospherics/hydroponics/tray = A
|
||||
if(!tray.mechanical)
|
||||
to_chat(user, SPAN_WARNING("How are you going to label that?"))
|
||||
to_chat(user, span_warning("How are you going to label that?"))
|
||||
return
|
||||
tray.labelled = label
|
||||
spawn(1)
|
||||
tray.update_icon()
|
||||
|
||||
user.visible_message( \
|
||||
SPAN_NOTICE("\The [user] labels [A] as [label]."), \
|
||||
SPAN_NOTICE("You label [A] as [label]."))
|
||||
span_notice("\The [user] labels [A] as [label]."), \
|
||||
span_notice("You label [A] as [label]."))
|
||||
A.name = "[A.name] ([label])"
|
||||
|
||||
/obj/item/hand_labeler/attack_self(mob/user as mob)
|
||||
mode = !mode
|
||||
icon_state = "labeler[mode]"
|
||||
if(mode)
|
||||
to_chat(user, SPAN_NOTICE("You turn on \the [src]."))
|
||||
to_chat(user, span_notice("You turn on \the [src]."))
|
||||
//Now let them chose the text.
|
||||
var/str = sanitizeSafe(tgui_input_text(user,"Label text?","Set label","",MAX_NAME_LEN), MAX_NAME_LEN)
|
||||
if(!str || !length(str))
|
||||
to_chat(user, SPAN_WARNING("Invalid text."))
|
||||
to_chat(user, span_warning("Invalid text."))
|
||||
return
|
||||
label = str
|
||||
to_chat(user, SPAN_NOTICE("You set the text to '[str]'."))
|
||||
to_chat(user, span_notice("You set the text to '[str]'."))
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("You turn off \the [src]."))
|
||||
to_chat(user, span_notice("You turn off \the [src]."))
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
if(istype(thing, /obj/item/pen))
|
||||
|
||||
if(jobban_isbanned(user, JOB_GRAFFITI))
|
||||
to_chat(user, SPAN_WARNING("You are banned from leaving persistent information across rounds."))
|
||||
to_chat(user, span_warning("You are banned from leaving persistent information across rounds."))
|
||||
return
|
||||
|
||||
var/writing_space = MAX_MESSAGE_LEN - length(written_text)
|
||||
if(writing_space <= 0)
|
||||
to_chat(user, SPAN_WARNING("There is no room left on \the [src]."))
|
||||
to_chat(user, span_warning("There is no room left on \the [src]."))
|
||||
return
|
||||
var/text = sanitizeSafe(tgui_input_text(usr, "What would you like to write?", null, null, writing_space), writing_space)
|
||||
if(!text || thing.loc != user || (!Adjacent(user) && loc != user) || user.incapacitated())
|
||||
@@ -50,7 +50,7 @@
|
||||
/obj/item/sticky_pad/examine(var/mob/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
to_chat(user, SPAN_NOTICE("It has [papers] sticky note\s left."))
|
||||
to_chat(user, span_notice("It has [papers] sticky note\s left."))
|
||||
|
||||
/obj/item/sticky_pad/attack_hand(var/mob/user)
|
||||
var/obj/item/paper/paper = new paper_type(get_turf(src))
|
||||
@@ -59,7 +59,7 @@
|
||||
paper.color = color
|
||||
written_text = null
|
||||
user.put_in_hands(paper)
|
||||
to_chat(user, SPAN_NOTICE("You pull \the [paper] off \the [src]."))
|
||||
to_chat(user, span_notice("You pull \the [paper] off \the [src]."))
|
||||
papers--
|
||||
if(papers <= 0)
|
||||
qdel(src)
|
||||
@@ -132,7 +132,7 @@
|
||||
if(target_turf != source_turf)
|
||||
dir_offset = get_dir(source_turf, target_turf)
|
||||
if(!(dir_offset in GLOB.cardinal))
|
||||
to_chat(user, SPAN_WARNING("You cannot reach that from here."))
|
||||
to_chat(user, span_warning("You cannot reach that from here."))
|
||||
return
|
||||
|
||||
if(user.unEquip(src, source_turf))
|
||||
|
||||
Reference in New Issue
Block a user