feat: highlight chat messages that mention the local player

When a chat message contains the player's character name, the message
is rendered with a golden highlight background and bright yellow text.
A whisper notification sound plays (at most once per new-message scan)
to alert the player. Outgoing whispers and system messages are
excluded from mention detection.
This commit is contained in:
Kelsi 2026-03-12 06:45:27 -07:00
parent c14b338a92
commit 9a21e19486
2 changed files with 57 additions and 1 deletions

View file

@ -59,6 +59,9 @@ private:
std::vector<std::string> chatTabMatches_; // matching command list
int chatTabMatchIdx_ = -1; // active match index (-1 = inactive)
// Mention notification: plays a sound when the player's name appears in chat
size_t chatMentionSeenCount_ = 0; // how many messages have been scanned for mentions
// Chat tabs
int activeChatTab_ = 0;
struct ChatTab {