Improve color picker example and minor code comments changes

This commit is contained in:
vitopigno
2025-06-10 00:23:51 +02:00
parent 881cf66e4e
commit c42ee5ee6f
2 changed files with 3 additions and 2 deletions

View File

@@ -111,7 +111,8 @@ public sealed partial class ChatUIController : IOnSystemChanged<CharacterInfoSys
keyword = Regex.Replace(keyword, "^\"|(?<=^@)\"", "(?<!\\w)"); 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].*))"); keyword = Regex.Replace(keyword, "^@", @"(?<=(?<=,.*"".*)|(?<!\[Name].*))");
_highlights.Add(keyword); _highlights.Add(keyword);

View 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-auto-fill-highlights = Auto-fill the highlights with the character's information
ui-options-highlights-color = Highlights color: 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-held-item = Show held item next to cursor
ui-options-show-combat-mode-indicators = Show combat mode indicators with cursor ui-options-show-combat-mode-indicators = Show combat mode indicators with cursor
ui-options-opaque-storage-window = Opaque storage window ui-options-opaque-storage-window = Opaque storage window