[MIRROR] Implementing tgchat to replace old VChat (#7371)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Selis <selis@xynolabs.com>
This commit is contained in:
CHOMPStation2
2023-12-09 05:03:57 -07:00
committed by GitHub
parent a5c370fb85
commit c2bc0f78c8
46 changed files with 3204 additions and 1622 deletions

View File

@@ -23,15 +23,20 @@ export const MESSAGE_TYPE_INTERNAL = 'internal';
// Must match the set of defines in code/__DEFINES/chat.dm
export const MESSAGE_TYPE_SYSTEM = 'system';
export const MESSAGE_TYPE_LOCALCHAT = 'localchat';
export const MESSAGE_TYPE_PLOCALCHAT = 'plocalchat';
export const MESSAGE_TYPE_RADIO = 'radio';
export const MESSAGE_TYPE_NIF = 'nif';
export const MESSAGE_TYPE_INFO = 'info';
export const MESSAGE_TYPE_WARNING = 'warning';
export const MESSAGE_TYPE_DEADCHAT = 'deadchat';
export const MESSAGE_TYPE_OOC = 'ooc';
export const MESSAGE_TYPE_LOOC = 'looc';
export const MESSAGE_TYPE_ADMINPM = 'adminpm';
export const MESSAGE_TYPE_MENTORPM = 'mentorpm';
export const MESSAGE_TYPE_COMBAT = 'combat';
export const MESSAGE_TYPE_ADMINCHAT = 'adminchat';
export const MESSAGE_TYPE_MODCHAT = 'modchat';
export const MESSAGE_TYPE_RLOOC = 'rlooc';
export const MESSAGE_TYPE_PRAYER = 'prayer';
export const MESSAGE_TYPE_EVENTCHAT = 'eventchat';
export const MESSAGE_TYPE_ADMINLOG = 'adminlog';
@@ -53,14 +58,26 @@ export const MESSAGE_TYPES = [
type: MESSAGE_TYPE_LOCALCHAT,
name: 'Local',
description: 'In-character local messages (say, emote, etc)',
selector: '.say, .emote',
selector: '.say, .emote, .emotesubtle',
},
{
type: MESSAGE_TYPE_PLOCALCHAT,
name: 'Local (Pred/Prey)',
description: 'Messages from / to absorbed or dominated prey',
selector: '.psay, .pemote',
},
{
type: MESSAGE_TYPE_RADIO,
name: 'Radio',
description: 'All departments of radio messages',
selector:
'.alert, .minorannounce, .syndradio, .centcomradio, .aiprivradio, .comradio, .secradio, .gangradio, .engradio, .medradio, .sciradio, .suppradio, .servradio, .radio, .deptradio, .binarysay, .newscaster, .resonate, .abductor, .alien, .changeling',
'.alert, .minorannounce, .syndradio, .centradio, .airadio, .comradio, .secradio, .gangradio, .engradio, .medradio, .sciradio, .supradio, .srvradio, .expradio, .radio, .deptradio, .binarysay, .newscaster, .resonate, .abductor, .alien, .changeling',
},
{
type: MESSAGE_TYPE_NIF,
name: 'NIF',
description: 'Messages from the NIF itself and people inside',
selector: '.nif',
},
{
type: MESSAGE_TYPE_INFO,
@@ -88,12 +105,25 @@ export const MESSAGE_TYPES = [
description: 'The bluewall of global OOC messages',
selector: '.ooc, .adminooc, .adminobserverooc, .oocplain',
},
{
type: MESSAGE_TYPE_LOOC,
name: 'Local OOC',
description: 'Local OOC messages, always enabled',
selector: '.looc',
important: true,
},
{
type: MESSAGE_TYPE_ADMINPM,
name: 'Admin PMs',
description: 'Messages to/from admins (adminhelp)',
selector: '.pm, .adminhelp',
},
{
type: MESSAGE_TYPE_MENTORPM,
name: 'Mentor PMs',
description: 'Mentorchat and mentor pms',
selector: '.mentor_channel, .mentor',
},
{
type: MESSAGE_TYPE_COMBAT,
name: 'Combat Log',
@@ -120,6 +150,20 @@ export const MESSAGE_TYPES = [
selector: '.mod_channel',
admin: true,
},
{
type: MESSAGE_TYPE_EVENTCHAT,
name: 'Event Chat',
description: 'ESAY messages',
selector: '.event_channel',
admin: true,
},
{
type: MESSAGE_TYPE_RLOOC,
name: 'Remote LOOC',
description: 'Remote LOOC messages',
selector: '.rlooc',
admin: true,
},
{
type: MESSAGE_TYPE_PRAYER,
name: 'Prayers',