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>
This commit is contained in:
LT3
2024-12-26 13:46:28 -08:00
committed by GitHub
parent 13ef3e3607
commit adeff0ebd5
3 changed files with 13 additions and 1 deletions

View File

@@ -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"

View File

@@ -0,0 +1,4 @@
author: "LT3"
delete-after: True
changes:
- qol: "Entertainment and newscaster broadcasts can be toggled in chat tabs"

View File

@@ -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,