From d23b01f040f67776444e365495cab58cb7f93b83 Mon Sep 17 00:00:00 2001 From: Madison Rye Progress Date: Sun, 20 Apr 2025 03:55:28 -0700 Subject: [PATCH] Port ChatStack (#3332) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add Chatstack (#1422) Chatstack. Can be changed/disabled in settings, and the chat automatically updates to reflect the change. Does not interfere with filters, etc. Also updated ChatMessage class and serverside IChatManager with a new IgnoreChatStack bool option, default false. Currently is limited to looking up to 3 messages behind, only because I feel off adding a textbox to the options. --- - [x] Make sure it works - [x] Add it to settings ---

Media

![image](https://github.com/user-attachments/assets/e020bb35-3bac-4620-80d1-3dbd9dee2d1c) [ee.webm](https://github.com/user-attachments/assets/bf1c92f0-b52a-47a0-b142-70b1ee5003cc)

--- :cl: - add: Chatstack. Look for it in Options under "General - Accessibility". --------- Co-authored-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> * fix missing param; use default value * Properly save entries option * Move added EE content to _EE where possible, comment where not. * Comments; simplify l10n; cleanup/standards * remove ignoreChatStack, unused l10n strings * l10n moment; style/untouch * Simplify ftl; int → var * Whitespace * Fix naming for get-only property Co-authored-by: Tobias Berger Signed-off-by: Madison Rye Progress * Fix instance of old variable name. --------- Signed-off-by: Madison Rye Progress Co-authored-by: RedFoxIV <38788538+RedFoxIV@users.noreply.github.com> Co-authored-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> Co-authored-by: Tobias Berger --- Content.Client/Options/UI/Tabs/MiscTab.xaml | 2 + .../Options/UI/Tabs/MiscTab.xaml.cs | 11 ++ .../Systems/Chat/Widgets/ChatBox.xaml.cs | 107 +++++++++++++++++- Content.Shared/_EE/CCVars/CCVars.EE.cs | 13 +++ Resources/Locale/en-US/_EE/chat/chatstack.ftl | 1 + .../en-US/_EE/escape-menu/ui/options-menu.ftl | 6 + 6 files changed, 135 insertions(+), 5 deletions(-) create mode 100644 Content.Shared/_EE/CCVars/CCVars.EE.cs create mode 100644 Resources/Locale/en-US/_EE/chat/chatstack.ftl create mode 100644 Resources/Locale/en-US/_EE/escape-menu/ui/options-menu.ftl diff --git a/Content.Client/Options/UI/Tabs/MiscTab.xaml b/Content.Client/Options/UI/Tabs/MiscTab.xaml index c1733e209d..8a73aa9aec 100644 --- a/Content.Client/Options/UI/Tabs/MiscTab.xaml +++ b/Content.Client/Options/UI/Tabs/MiscTab.xaml @@ -9,6 +9,8 @@ StyleClasses="LabelKeyText"/> + +