fix examine_block to boxed_message

This commit is contained in:
lessthanthree
2025-02-22 18:58:49 -08:00
parent 7ad09602b5
commit 98cd4e28a4
9 changed files with 19 additions and 19 deletions
@@ -2,7 +2,7 @@ ADMIN_VERB(request_more_opfor, R_FUN, "Request OPFOR", "Request players sign up
var/asked = 0
for(var/mob/living/carbon/human/human in GLOB.alive_player_list)
if(human.client?.prefs?.read_preference(/datum/preference/toggle/be_antag))
to_chat(human, examine_block(span_greentext("The admins are looking for OPFOR players, if you're interested, sign up in the OOC tab!")))
to_chat(human, custom_boxed_message("green_box", span_greentext("The admins are looking for OPFOR players, if you're interested, sign up in the OOC tab!")))
asked++
message_admins("[ADMIN_LOOKUP(user)] has requested more OPFOR players! (Asked: [asked] players)")
@@ -296,11 +296,11 @@
return
for(var/datum/opposing_force_objective/objective as anything in objectives)
if(objective.status == OPFOR_OBJECTIVE_STATUS_NOT_REVIEWED)
to_chat(usr, examine_block(span_command_headset(span_pink("OPFOR: ERROR, some objectives have not been reviewed. Please approve/deny all objectives."))))
to_chat(usr, custom_boxed_message("purple_box", span_command_headset(span_pink("OPFOR: ERROR, some objectives have not been reviewed. Please approve/deny all objectives."))))
return
for(var/datum/opposing_force_selected_equipment/equipment as anything in selected_equipment)
if(equipment.status == OPFOR_EQUIPMENT_STATUS_NOT_REVIEWED)
to_chat(usr, examine_block(span_command_headset(span_pink("OPFOR: ERROR, some equipment requests have not been reviewed. Please approve/deny all equipment requests."))))
to_chat(usr, custom_boxed_message("purple_box", span_command_headset(span_pink("OPFOR: ERROR, some equipment requests have not been reviewed. Please approve/deny all equipment requests."))))
return
SSopposing_force.approve(src, usr)
if("approve_all")
@@ -376,7 +376,7 @@
if(choice == "No")
return
handling_admin = get_admin_ckey(user)
to_chat(mind_reference.current, examine_block(span_nicegreen("Your OPFOR application is now being handled by [handling_admin].")))
to_chat(mind_reference.current, custom_boxed_message("green_box", span_nicegreen("Your OPFOR application is now being handled by [handling_admin].")))
send_admins_opfor_message("HANDLE: [ADMIN_LOOKUPFLW(user)] is handling [mind_reference.key]'s OPFOR application.")
send_system_message("[handling_admin] has assigned themselves to this application")
add_log(user.ckey, "Assigned self to application")
@@ -507,7 +507,7 @@
add_log(user.ckey, "Submitted to the OPFOR subsystem")
send_system_message("[user ? get_admin_ckey(user) : "The OPFOR subsystem"] has submitted the application for review")
send_admins_opfor_message(span_command_headset("SUBMISSION: [ADMIN_LOOKUPFLW(user)] has submitted their OPFOR application. They are number [queue_position] in the queue."))
to_chat(usr, examine_block(span_nicegreen(("You have been added to the queue for the OPFOR subsystem. You are number <b>[queue_position]</b> in line."))))
to_chat(usr, custom_boxed_message("green_box", span_nicegreen(("You have been added to the queue for the OPFOR subsystem. You are number <b>[queue_position]</b> in line."))))
/datum/opposing_force/proc/modify_request(mob/user)
if(status == OPFOR_STATUS_CHANGES_REQUESTED)
@@ -540,7 +540,7 @@
opfor.status = OPFOR_OBJECTIVE_STATUS_DENIED
SEND_SOUND(mind_reference.current, sound('modular_skyrat/modules/opposing_force/sound/denied.ogg'))
add_log(denier.ckey, "Denied application")
to_chat(mind_reference.current, examine_block(span_redtext("Your OPFOR application has been denied by [denier ? get_admin_ckey(denier) : "the OPFOR subsystem"]!")))
to_chat(mind_reference.current, custom_boxed_message("red_box", span_redtext("Your OPFOR application has been denied by [denier ? get_admin_ckey(denier) : "the OPFOR subsystem"]!")))
send_system_message(get_admin_ckey(denier) + " has denied the application with the following reason: [reason]")
send_admins_opfor_message("[span_red("DENIED")]: [ADMIN_LOOKUPFLW(denier)] has denied [ckey]'s application([reason ? reason : "No reason specified"])")
ticket_counter_add_handled(denier.key, 1)
@@ -559,7 +559,7 @@
continue
objective_denied = TRUE
break
to_chat(mind_reference.current, examine_block(span_greentext("Your OPFOR application has been [objective_denied ? span_bold("partially approved (please view your OPFOR for details)") : span_bold("fully approved")] by [approver ? get_admin_ckey(approver) : "the OPFOR subsystem"]!")))
to_chat(mind_reference.current, custom_boxed_message("green_box", span_greentext("Your OPFOR application has been [objective_denied ? span_bold("partially approved (please view your OPFOR for details)") : span_bold("fully approved")] by [approver ? get_admin_ckey(approver) : "the OPFOR subsystem"]!")))
send_system_message("[approver ? get_admin_ckey(approver) : "The OPFOR subsystem"] has approved the application")
send_admins_opfor_message("[span_green("APPROVED")]: [ADMIN_LOOKUPFLW(approver)] has approved [ckey]'s application")
ticket_counter_add_handled(approver.key, 1)
@@ -732,7 +732,7 @@
/datum/opposing_force/proc/broadcast_queue_change()
var/queue_number = SSopposing_force.get_queue_position(src)
to_chat(mind_reference.current, examine_block(span_nicegreen("Your OPFOR application is now number [queue_number] in the queue.")))
to_chat(mind_reference.current, custom_boxed_message("green_box", span_nicegreen("Your OPFOR application is now number [queue_number] in the queue.")))
send_system_message("Application is now number [queue_number] in the queue")
/datum/opposing_force/proc/send_message(mob/user, message)