[MIRROR] refactors most spans (#9139)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -49,11 +49,11 @@
var/turf/simulated/floor/F = A
if(!istype(F))
to_chat(user, "<span class='warning'>\The [src] can only be used on station flooring.</span>")
to_chat(user, span_warning("\The [src] can only be used on station flooring."))
return
if(!F.flooring || !F.flooring.can_paint || F.broken || F.burnt)
to_chat(user, "<span class='warning'>\The [src] cannot paint broken or missing tiles.</span>")
to_chat(user, span_warning("\The [src] cannot paint broken or missing tiles."))
return
var/list/decal_data = decals[decal]
@@ -67,11 +67,11 @@
config_error = 1
if(config_error)
to_chat(user, "<span class='warning'>\The [src] flashes an error light. You might need to reconfigure it.</span>")
to_chat(user, span_warning("\The [src] flashes an error light. You might need to reconfigure it."))
return
if(F.decals && F.decals.len > 5 && painting_decal != /obj/effect/floor_decal/reset)
to_chat(user, "<span class='warning'>\The [F] has been painted too much; you need to clear it off.</span>")
to_chat(user, span_warning("\The [F] has been painted too much; you need to clear it off."))
return
var/painting_dir = 0
@@ -130,7 +130,7 @@
var/new_colour = input(usr, "Choose a colour.", name, paint_colour) as color|null
if(new_colour && new_colour != paint_colour)
paint_colour = new_colour
to_chat(usr, "<span class='notice'>You set \the [src] to paint with <font color='[paint_colour]'>a new colour</font>.</span>")
to_chat(usr, span_notice("You set \the [src] to paint with <font color='[paint_colour]'>a new colour</font>."))
/obj/item/floor_painter/verb/choose_decal()
set name = "Choose Decal"
@@ -144,7 +144,7 @@
var/new_decal = tgui_input_list(usr, "Select a decal:", "Decal Choice", decals)
if(new_decal && !isnull(decals[new_decal]))
decal = new_decal
to_chat(usr, "<span class='notice'>You set \the [src] decal to '[decal]'.</span>")
to_chat(usr, span_notice("You set \the [src] decal to '[decal]'."))
/obj/item/floor_painter/verb/choose_direction()
set name = "Choose Direction"
@@ -158,4 +158,4 @@
var/new_dir = tgui_input_list(usr, "Select a direction:", "Direction Choice", paint_dirs)
if(new_dir && !isnull(paint_dirs[new_dir]))
paint_dir = new_dir
to_chat(usr, "<span class='notice'>You set \the [src] direction to '[paint_dir]'.</span>")
to_chat(usr, span_notice("You set \the [src] direction to '[paint_dir]'."))