mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Swags out the roundstart report (#95149)
## About The Pull Request The roundstart report has been dripped out with a logo and some additional flavor <img width="585" height="916" alt="image" src="https://github.com/user-attachments/assets/d0dab027-24e4-4d4a-a5ad-59616b3bf33d" /> The flavor messages are just some randomly selected lore tidbits or filler text Other changes: - Paper now updates to your writing implement immediately, rather than on process ticks. - Adds a config to hide the dynamic report for cutting down the length of the roundstart report. Disabled by default - Footnotes now requires `R_FUN` rather than `R_ADMIN` ## Why It's Good For The Game Makes the command report look a ton more official while introducing some fun worldbuilding. ## Changelog 🆑 Melbert qol: Paper UI now updates immediately when you pick up or drop a writing tool. qol: The roundstart command report has had its style updated, and now contains some bonus lore. admin: Changes the perms needed to add command report footnotes to "Fun" rather than "Admin" admin: Adds a verb for changing the command report main contents (Requiring "Fun") config: Adds a config for hiding the dynamic report, disabled by default (disabled meaning you still get the report) /🆑
This commit is contained in:
@@ -152,13 +152,13 @@ ADMIN_VERB(change_sec_level, R_ADMIN, "Set Security Level", "Changes the securit
|
||||
message_admins("[key_name_admin(user)] changed the security level to [level]")
|
||||
BLACKBOX_LOG_ADMIN_VERB("Set Security Level [capitalize(level)]")
|
||||
|
||||
ADMIN_VERB(command_report_footnote, R_ADMIN, "Command Report Footnote", "Adds a footnote to the roundstart command report.", ADMIN_CATEGORY_EVENTS)
|
||||
ADMIN_VERB(command_report_footnote, R_FUN, "Command Report Footnote", "Adds a footnote to the roundstart command report.", ADMIN_CATEGORY_EVENTS)
|
||||
var/datum/command_footnote/command_report_footnote = new /datum/command_footnote()
|
||||
GLOB.communications_controller.block_command_report += 1 //Add a blocking condition to the counter until the inputs are done.
|
||||
|
||||
command_report_footnote.message = tgui_input_text(
|
||||
user,
|
||||
"This message will be attached to the bottom of the roundstart threat report. Be sure to delay the roundstart report if you need extra time.",
|
||||
"This message will be attached to the bottom of the roundstart threat report.",
|
||||
"P.S.",
|
||||
)
|
||||
if(!command_report_footnote.message)
|
||||
@@ -176,7 +176,7 @@ ADMIN_VERB(command_report_footnote, R_ADMIN, "Command Report Footnote", "Adds a
|
||||
command_report_footnote.signature = "Classified"
|
||||
|
||||
GLOB.communications_controller.command_report_footnotes += command_report_footnote
|
||||
GLOB.communications_controller.block_command_report--
|
||||
GLOB.communications_controller.block_command_report -= 1
|
||||
|
||||
message_admins("[user] has added a footnote to the command report: [command_report_footnote.message], signed [command_report_footnote.signature]")
|
||||
|
||||
@@ -184,6 +184,16 @@ ADMIN_VERB(command_report_footnote, R_ADMIN, "Command Report Footnote", "Adds a
|
||||
var/message
|
||||
var/signature
|
||||
|
||||
ADMIN_VERB(command_report_content, R_FUN, "Command Report Content", "Sets the main content of the roundstart command report.", ADMIN_CATEGORY_EVENTS)
|
||||
GLOB.communications_controller.block_command_report += 1
|
||||
GLOB.communications_controller.command_report_main_content = tgui_input_text(
|
||||
user,
|
||||
"This message will be the main content of the roundstart command report, above the threat report (if enabled).",
|
||||
"To Whom It May Concern",
|
||||
)
|
||||
GLOB.communications_controller.block_command_report -= 1
|
||||
message_admins("[key_name_admin(user)] has [GLOB.communications_controller.command_report_main_content ? "set" : "cleared"] the main content of the roundstart command report.")
|
||||
|
||||
ADMIN_VERB(delay_command_report, R_FUN, "Delay Command Report", "Prevents the roundstart command report from being sent; or forces it to send it delayed.", ADMIN_CATEGORY_EVENTS)
|
||||
GLOB.communications_controller.block_command_report = !GLOB.communications_controller.block_command_report
|
||||
message_admins("[key_name_admin(user)] has [(GLOB.communications_controller.block_command_report ? "delayed" : "sent")] the roundstart command report.")
|
||||
|
||||
@@ -160,7 +160,7 @@ ADMIN_VERB(create_command_report, R_ADMIN, "Create Command Report", "Create a co
|
||||
priority_announce(command_report_content, subheader == ""? null : subheader, report_sound, has_important_message = TRUE, color_override = chosen_color)
|
||||
|
||||
if(!announce_contents || print_report)
|
||||
print_command_report(command_report_content, "[announce_contents ? "" : "Classified "][command_name] Update", !announce_contents)
|
||||
print_command_report(command_report_content, "[announce_contents ? "" : "Classified "][command_name] Update", !announce_contents, contains_advanced_html = TRUE)
|
||||
|
||||
change_command_name(original_command_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user