From adeff0ebd5fce7bf2fe60cfae6a9d05a39ba5367 Mon Sep 17 00:00:00 2001 From: LT3 <83487515+lessthnthree@users.noreply.github.com> Date: Thu, 26 Dec 2024 13:46:28 -0800 Subject: [PATCH] Chat filter toggle for entertainment radio channel (#2761) ## About The Pull Request Adds the entertainment monitor as a filter option for chat log https://github.com/tgstation/tgstation/pull/88712/ https://github.com/user-attachments/assets/7006ac99-edf0-41aa-9f87-7a58af05e3aa --------- Co-authored-by: tgstation-ci[bot] <179393467+tgstation-ci[bot]@users.noreply.github.com> --- code/__DEFINES/chat.dm | 1 + html/changelogs/AutoChangeLog-pr-88712.yml | 4 ++++ tgui/packages/tgui-panel/chat/constants.ts | 9 ++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/AutoChangeLog-pr-88712.yml diff --git a/code/__DEFINES/chat.dm b/code/__DEFINES/chat.dm index 516fe8c4e19..4640ce37acf 100644 --- a/code/__DEFINES/chat.dm +++ b/code/__DEFINES/chat.dm @@ -11,6 +11,7 @@ #define MESSAGE_TYPE_SYSTEM "system" #define MESSAGE_TYPE_LOCALCHAT "localchat" #define MESSAGE_TYPE_RADIO "radio" +#define MESSAGE_TYPE_ENTERTAINMENT = "entertainment" #define MESSAGE_TYPE_INFO "info" #define MESSAGE_TYPE_WARNING "warning" #define MESSAGE_TYPE_DEADCHAT "deadchat" diff --git a/html/changelogs/AutoChangeLog-pr-88712.yml b/html/changelogs/AutoChangeLog-pr-88712.yml new file mode 100644 index 00000000000..d7a90c16a1b --- /dev/null +++ b/html/changelogs/AutoChangeLog-pr-88712.yml @@ -0,0 +1,4 @@ +author: "LT3" +delete-after: True +changes: + - qol: "Entertainment and newscaster broadcasts can be toggled in chat tabs" \ No newline at end of file diff --git a/tgui/packages/tgui-panel/chat/constants.ts b/tgui/packages/tgui-panel/chat/constants.ts index 681a22b0ce5..83079a099db 100644 --- a/tgui/packages/tgui-panel/chat/constants.ts +++ b/tgui/packages/tgui-panel/chat/constants.ts @@ -24,6 +24,7 @@ export const MESSAGE_TYPE_INTERNAL = 'internal'; export const MESSAGE_TYPE_SYSTEM = 'system'; export const MESSAGE_TYPE_LOCALCHAT = 'localchat'; export const MESSAGE_TYPE_RADIO = 'radio'; +export const MESSAGE_TYPE_ENTERTAINMENT = 'entertainment'; export const MESSAGE_TYPE_INFO = 'info'; export const MESSAGE_TYPE_WARNING = 'warning'; export const MESSAGE_TYPE_DEADCHAT = 'deadchat'; @@ -65,7 +66,13 @@ export const MESSAGE_TYPES = [ name: 'Radio', description: 'All departments of radio messages', selector: - '.alert, .minorannounce, .syndradio, .centcomradio, .aiprivradio, .enteradio, .comradio, .secradio, .gangradio, .engradio, .medradio, .sciradio, .suppradio, .servradio, .radio, .deptradio, .binarysay, .newscaster, .resonate, .abductor, .alien, .changeling', + '.alert, .minorannounce, .syndradio, .centcomradio, .aiprivradio, .comradio, .secradio, .gangradio, .engradio, .medradio, .sciradio, .suppradio, .servradio, .radio, .deptradio, .binarysay, .resonate, .abductor, .alien, .changeling', + }, + { + type: MESSAGE_TYPE_ENTERTAINMENT, + name: 'Entertainment', + description: 'Entertainment and newscaster broadcasts', + selector: '.enteradio, .newscaster', }, { type: MESSAGE_TYPE_INFO,