mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: add reputation bar above XP bar
Show a color-coded reputation progress bar for the most recently gained faction above the XP bar. The bar is auto-shown when any faction rep changes (watchedFactionId_ tracks the last changed faction). Colors follow WoW conventions: red=Hated/Hostile, orange=Unfriendly, yellow=Neutral, green=Friendly, blue=Honored, purple=Revered, gold=Exalted. Tooltip shows exact standing values on hover.
This commit is contained in:
parent
0a03bf9028
commit
29a989e1f4
4 changed files with 126 additions and 0 deletions
|
|
@ -3546,6 +3546,7 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
delta > 0 ? "increased" : "decreased",
|
||||
std::abs(delta));
|
||||
addSystemChatMessage(buf);
|
||||
watchedFactionId_ = factionId;
|
||||
if (repChangeCallback_) repChangeCallback_(name, delta, standing);
|
||||
}
|
||||
LOG_DEBUG("SMSG_SET_FACTION_STANDING: faction=", factionId, " standing=", standing);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue