Files
Bubberstation/tgui/packages/tgui-panel/chat/renderer.js
SkyratBot 3e2939f3d2 [MIRROR] Adds multiple chat highlights [MDB IGNORE] (#18628)
* Adds multiple chat highlights (#72514)

## About The Pull Request
This PR is a CM port from
https://github.com/cmss13-devs/cmss13/pull/2162 and
https://github.com/cmss13-devs/cmss13/pull/2214

allows you to make up to 10 unique chat highlights, toggle if they
highlight the whole message, and you can use regex in them!

![image](https://user-images.githubusercontent.com/66756236/211043329-463bde95-ecad-4cf3-b7c5-9fb5c50be74a.png)

## Why It's Good For The Game
makes the chat highlight system much more versatile with multiple
highlights and regex

makes it more subtle, if you want, by toggling off the whole message
highlighting

## Changelog
🆑 stanalbatross, thedonkified
add: added the ability to make up to 10 individual highlights in tgchat,
customise their colours, and toggle if they highlight the whole message
or not. Ported from CM.
add: you can now use regex for text highlighting. The syntax is /[regex
expression]/, eg /dog[0-9]/. There are no quantifiers, but you can use
capture groups. The regex must read a minimum of two characters.
/🆑

Co-authored-by: Stan_Albatross <swt91a@ gmail.com>

* Adds multiple chat highlights

Co-authored-by: Stan_Albatross <66756236+stanalbatross@users.noreply.github.com>
Co-authored-by: Stan_Albatross <swt91a@ gmail.com>
2023-01-11 08:15:07 -08:00

18 KiB