Fix small issues with Text Highlighting (#38144)

This commit is contained in:
SlamBamActionman
2025-09-03 21:42:15 +02:00
committed by GitHub
3 changed files with 6 additions and 5 deletions

View File

@@ -116,8 +116,9 @@ public sealed partial class ChatUIController : IOnSystemChanged<CharacterInfoSys
keyword = EndDoubleQuote.Replace(keyword, "(?<!\\w)");
}
// Make sure any name tagged as ours gets highlighted only when others say it.
keyword = StartAtSign.Replace(keyword, "(?<=(?<=/name.*)|(?<=,.*\"\".*))");
// 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 = StartAtSign.Replace(keyword, @"(?<=(?<=^.?OOC:.*:.*)|(?<=,.*"".*)|(?<=\n.*))");
_highlights.Add(keyword);
}

View File

@@ -37,6 +37,6 @@ hud-chatbox-highlights-button = Submit
hud-chatbox-highlights-tooltip = The words need to be separated by a newline,
if wrapped around " they will be highlighted
only if separated by spaces or punctuation.
hud-chatbox-highlights-placeholder = McHands
hud-chatbox-highlights-placeholder = @McHands
"Judge"
Medical

View File

@@ -50,8 +50,8 @@ ui-options-interface-label = Interface
ui-options-auto-fill-highlights = Auto-fill the highlights with the character's information
ui-options-highlights-color = Highlighs color:
ui-options-highlights-color-example = This is an highlighted text!
ui-options-highlights-color = Highlights color:
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