[MIRROR] next set of spans (#9247)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-17 16:33:07 -07:00
committed by GitHub
parent bc6662ef9e
commit 7416cbea22
599 changed files with 2619 additions and 2564 deletions

View File

@@ -67,7 +67,7 @@ GLOBAL_LIST_EMPTY(fusion_cores)
if(Output.get_pairing())
reagents.trans_to_holder(Output.reagents, Output.reagents.maximum_volume)
if(prob(5))
visible_message("<b>\The [src]</b> gurgles as it exports fluid.")
visible_message(span_infoplain(span_bold("\The [src]") + " gurgles as it exports fluid."))
if(owned_field)
@@ -132,7 +132,7 @@ GLOBAL_LIST_EMPTY(fusion_cores)
/obj/machinery/power/fusion_core/attack_hand(var/mob/user)
if(!Adjacent(user)) // As funny as it was for the AI to hug-kill the tokamak field from a distance...
return
visible_message("<b>\The [user]</b> hugs \the [src] to make it feel better!")
visible_message(span_infoplain(span_bold("\The [user]") + " hugs \the [src] to make it feel better!"))
if(owned_field)
Shutdown()

View File

@@ -63,16 +63,16 @@
if(cur_viewed_device && (cur_viewed_device.id_tag != id_tag || get_dist(src, cur_viewed_device) > scan_range))
cur_viewed_device = null
var/dat = "<B>Core Control #[id_tag]</B><BR>"
var/dat = span_bold("Core Control #[id_tag]") + "<BR>"
if(cur_viewed_device)
dat += {"
<a href='?src=\ref[src];goto_scanlist=1'>Back to overview</a><hr>
Device ident '[cur_viewed_device.id_tag]' <span style='color: [cur_viewed_device.owned_field ? "green" : "red"]'>[cur_viewed_device.owned_field ? "Active" : "Inactive"].</span><br>
Device ident '[cur_viewed_device.id_tag]' [cur_viewed_device.owned_field ? span_green("Active") : span_red("Inactive")].<br>
<b>Power status:</b> [cur_viewed_device.avail()]/[cur_viewed_device.active_power_usage] W<br>
<hr>
<b>Field Status:</b> <span style='color: [cur_viewed_device.owned_field ? "red" : "green"]'><a href='?src=\ref[src];toggle_active=1'>[cur_viewed_device.owned_field ? "Online" : "Offline"].</a></span><br>
<b>Reactant Dump:</b> <a href='?src=\ref[src];syphon=1'><span style='color: [cur_viewed_device.owned_field ? "red" : "green"]'>[cur_viewed_device.reactant_dump ? "Active" : "Inactive"].</span></a><br>
<b>Field Status:</b> <a href='?src=\ref[src];toggle_active=1'>[cur_viewed_device.owned_field ? span_green("Online") : span_red("Offline")].</a><br>
<b>Reactant Dump:</b> <a href='?src=\ref[src];syphon=1'>[cur_viewed_device.reactant_dump ? span_gren("Active") : span_red("Inactive")].</a><br>
<hr>
<b>Field power density (W.m<sup>-3</sup>):</b><br>
<a href='?src=\ref[src];str=-1000'>----</a>
@@ -123,12 +123,12 @@
var/status
var/can_access = 1
if(!check_core_status(C))
status = "<span style='color: red'>Unresponsive</span>"
status = span_red("Unresponsive")
can_access = 0
else if(C.avail() < C.active_power_usage)
status = "<span style='color: orange'>Underpowered</span>"
status = span_orange("Underpowered")
else
status = "<span style='color: green'>Good</span>"
status = span_green("Good")
dat += {"
<tr>
@@ -138,7 +138,7 @@
if(!can_access)
dat += {"
<td><span style='color: red'>ERROR</span></td>
<td>" + span_red("ERROR") + "</td>
"}
else
dat += {"
@@ -149,7 +149,7 @@
"}
else
dat += "<span style='color: red'>No electromagnetic field generators connected.</span>"
dat += span_red("No electromagnetic field generators connected.")
var/datum/browser/popup = new(user, "fusion_control", name, 500, 400, src)
popup.set_content(dat)

View File

@@ -28,14 +28,14 @@
to_chat(user, span_warning("You need at least three hundred units of material to form a fuel rod."))
return 1
var/datum/reagent/R = thing.reagents.reagent_list[1]
visible_message("<b>\The [src]</b> compresses the contents of \the [thing] into a new fuel assembly.")
visible_message(span_infoplain(span_bold("\The [src]") + " compresses the contents of \the [thing] into a new fuel assembly."))
var/obj/item/fuel_assembly/F = new(get_turf(src), R.id, R.color)
thing.reagents.remove_reagent(R.id, R.volume)
user.put_in_hands(F)
else if(istype(thing, /obj/machinery/power/supermatter))
var/obj/item/fuel_assembly/F = new(get_turf(src), "supermatter")
visible_message("<b>\The [src]</b> compresses \the [thing] into a new fuel assembly.")
visible_message(span_infoplain(span_bold("\The [src]") + " compresses \the [thing] into a new fuel assembly."))
qdel(thing)
user.put_in_hands(F)
return 1
@@ -67,7 +67,7 @@
to_chat(user, span_warning("You need at least 25 [mat.sheet_plural_name] to make a fuel rod."))
return
var/obj/item/fuel_assembly/F = new(get_turf(src), mat.name)
visible_message("<b>\The [src]</b> compresses \the [thing] into a new fuel assembly.")
visible_message(span_infoplain(span_bold("\The [src]") + " compresses \the [thing] into a new fuel assembly."))
M.use(FUSION_ROD_SHEET_AMT)
user.put_in_hands(F)
else

View File

@@ -50,7 +50,7 @@
to_chat(user, span_warning("This console has not been assigned an ident tag. Please contact your system administrator or conduct a manual update with a standard multitool."))
return
var/dat = "<B>Reactor Core Fuel Control #[id_tag]</B><BR>"
var/dat = span_bold("Reactor Core Fuel Control #[id_tag]") + "<BR>"
dat += {"
<hr>
<table border=1 width='100%'>
@@ -67,9 +67,9 @@
dat += "<tr>"
if(I.stat & (BROKEN|NOPOWER))
dat += "<td><span class='danger'>ERROR</span></td>"
dat += "<td><span class='danger'>ERROR</span></td>"
dat += "<td><span class='danger'>ERROR</span></td>"
dat += "<td>" + span_danger("ERROR") + "</td>"
dat += "<td>" + span_danger("ERROR") + "</td>"
dat += "<td>" + span_danger("ERROR") + "</td>"
else
dat += "<td>[I.cur_assembly ? I.cur_assembly.fuel_type : "NONE"]</td>"
if(I.cur_assembly)

View File

@@ -62,9 +62,9 @@ GLOBAL_LIST_EMPTY(fuel_injectors)
//CHOMPEdit End
if(cur_assembly)
cur_assembly.forceMove(get_turf(src))
visible_message("<b>\The [user]</b> swaps \the [src]'s [cur_assembly] for \a [W].")
visible_message(span_infoplain(span_bold("\The [user]") + " swaps \the [src]'s [cur_assembly] for \a [W]."))
else
visible_message("<b>\The [user]</b> inserts \a [W] into \the [src].")
visible_message(span_infoplain(span_bold("\The [user]") + " inserts \a [W] into \the [src]."))
user.drop_from_inventory(W)
W.forceMove(src)
@@ -105,7 +105,7 @@ GLOBAL_LIST_EMPTY(fuel_injectors)
if(cur_assembly)
cur_assembly.forceMove(get_turf(src))
user.put_in_hands(cur_assembly)
visible_message("<b>\The [user]</b> removes \the [cur_assembly] from \the [src].")
visible_message(span_infoplain(span_bold("\The [user]") + " removes \the [cur_assembly] from \the [src]."))
cur_assembly = null
return
else

View File

@@ -47,12 +47,12 @@
to_chat(user, span_warning("This console has not been assigned an ident tag. Please contact your system administrator or conduct a manual update with a standard multitool."))
return
var/dat = "<td><b>Gyrotron controller #[id_tag]</b>"
var/dat = "<td>" + span_bold("Gyrotron controller #[id_tag]")
dat = "<table><tr>"
dat += "<td><b>Mode</b></td>"
dat += "<td><b>Fire Delay</b></td>"
dat += "<td><b>Power</b></td>"
dat += "<td>" + span_bold("Mode") + "</td>"
dat += "<td>" + span_bold("Fire Delay") + "</td>"
dat += "<td>" + span_bold("Power") + "</td>"
dat += "</tr>"
for(var/obj/machinery/power/emitter/gyrotron/G in gyrotrons)
@@ -61,9 +61,9 @@
dat += "<tr>"
if(G.state != 2 || (G.stat & (NOPOWER | BROKEN))) //Error data not found.
dat += "<td><span style='color: red'>ERROR</span></td>"
dat += "<td><span style='color: red'>ERROR</span></td>"
dat += "<td><span style='color: red'>ERROR</span></td>"
dat += "<td>" + span_red("ERROR") + "</td>"
dat += "<td>" + span_red("ERROR") + "</td>"
dat += "<td>" + span_red("ERROR") + "</td>"
else
dat += "<td><a href='?src=\ref[src];machine=\ref[G];toggle=1'>[G.active ? "Emitting" : "Standing By"]</a></td>"
dat += "<td><a href='?src=\ref[src];machine=\ref[G];modifyrate=1'>[G.rate]</a></td>"