mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
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:
parent
c14b338a92
commit
9a21e19486
2 changed files with 57 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue