mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
Fixes formatting on request console logs (#15505)
* Fixes formatting on request consoles. * Update requests_console.dm
This commit is contained in:
@@ -273,7 +273,7 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
|
||||
atom_say("[error_message]")
|
||||
return
|
||||
print_label(ship_tag_name, ship_tag_index)
|
||||
shipping_log += "Shipping Label printed for [ship_tag_name] - [msgVerified]"
|
||||
shipping_log.Add(list(list("Shipping Label printed for [ship_tag_name]", "[msgVerified]"))) // List in a list for passing into TGUI
|
||||
reset_message(TRUE)
|
||||
|
||||
//Handle silencing the console
|
||||
@@ -343,9 +343,9 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
|
||||
|
||||
switch(priority)
|
||||
if(RQ_HIGHPRIORITY) // High
|
||||
message_log += "High Priority - From: [linkedSender] - [message]"
|
||||
message_log.Add(list(list("High Priority - From: [linkedSender]") + message)) // List in a list for passing into TGUI
|
||||
else // Normal
|
||||
message_log += "From: [linkedSender] - [message]"
|
||||
message_log.Add(list(list("From: [linkedSender]") + message)) // List in a list for passing into TGUI
|
||||
set_light(2)
|
||||
|
||||
/obj/machinery/requests_console/proc/print_label(tag_name, tag_index)
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
|
||||
// Called when a crate is delivered by MULE at a location, for notifying purposes
|
||||
/obj/structure/closet/crate/proc/notifyRecipient(var/destination)
|
||||
var/msg = "[capitalize(name)] has arrived at [destination]."
|
||||
var/list/msg = list("[capitalize(name)] has arrived at [destination].")
|
||||
if(destination in announce_beacons)
|
||||
for(var/obj/machinery/requests_console/D in GLOB.allRequestConsoles)
|
||||
if(D.department in src.announce_beacons[destination])
|
||||
|
||||
@@ -440,7 +440,7 @@
|
||||
if(!is_station_level(z))
|
||||
return
|
||||
|
||||
var/msg = "Now available in [get_area_name(src, TRUE) || "Unknown"]:"
|
||||
var/list/msg = list("Now available in [get_area_name(src, TRUE) || "Unknown"]:")
|
||||
var/mats_in_stock = list()
|
||||
var/datum/component/material_container/materials = GetComponent(/datum/component/material_container)
|
||||
for(var/MAT in materials.materials)
|
||||
@@ -448,7 +448,7 @@
|
||||
var/mineral_amount = M.amount / MINERAL_MATERIAL_AMOUNT
|
||||
if(mineral_amount)
|
||||
mats_in_stock += M.id
|
||||
msg += "[capitalize(M.name)]: [mineral_amount] sheets"
|
||||
msg.Add("[capitalize(M.name)]: [mineral_amount] sheets")
|
||||
|
||||
// No point sending a message if we're dry
|
||||
if(!length(mats_in_stock))
|
||||
|
||||
@@ -250,7 +250,10 @@ const MessageLog = (props, context) => {
|
||||
} >
|
||||
{list2iterate.map(m => (
|
||||
<Box key={m}>
|
||||
{m}
|
||||
{m.map((i, key) => {
|
||||
return <div key={key}>{i}</div>;
|
||||
})}
|
||||
<hr />
|
||||
</Box>
|
||||
))}
|
||||
</Section>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user