]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Improve color picker example and minor code comments changes
authorvitopigno <vitopigno@gmail.com>
Mon, 9 Jun 2025 22:23:51 +0000 (00:23 +0200)
committervitopigno <vitopigno@gmail.com>
Mon, 9 Jun 2025 22:23:51 +0000 (00:23 +0200)
Content.Client/UserInterface/Systems/Chat/ChatUIController.Highlighting.cs
Resources/Locale/en-US/escape-menu/ui/options-menu.ftl

index cc0eff4056ef6580bd5dde37a970a8b13ddfc8b0..809713ddf773ca84401e9dbc2ce95f41dbd690b6 100644 (file)
@@ -111,7 +111,8 @@ public sealed partial class ChatUIController : IOnSystemChanged<CharacterInfoSys
                 keyword = Regex.Replace(keyword, "^\"|(?<=^@)\"", "(?<!\\w)");
             }
 
-            // Make sure any name tagged as ours gets highlighted only when others say it.
+            // Make sure the character's name is highlighted only when mentioned directly (eg. it's said by someone),
+            // for example in 'Name Surname says, "..."' 'Name Surname' won't be highlighted.
             keyword = Regex.Replace(keyword, "^@", @"(?<=(?<=,.*"".*)|(?<!\[Name].*))");
 
             _highlights.Add(keyword);
index 3451bf5d7b473010891099689c9328fd3b298ff1..6d727ec76e96fcab53aa5961ca8c0ba47fae5e85 100644 (file)
@@ -51,7 +51,7 @@ ui-options-interface-label = Interface
 
 ui-options-auto-fill-highlights = Auto-fill the highlights with the character's information
 ui-options-highlights-color = Highlights color:
-ui-options-highlights-color-example = This is a highlighted text!
+ui-options-highlights-color-example = This is highlighted text.
 ui-options-show-held-item = Show held item next to cursor
 ui-options-show-combat-mode-indicators = Show combat mode indicators with cursor
 ui-options-opaque-storage-window = Opaque storage window