mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 08:00:14 +00:00
Add Reputation tab to character screen with colored tier progress bars
- Add Reputation tab in character screen tab bar (Equipment/Stats/Reputation/Skills) - Implement renderReputationPanel() showing all tracked factions sorted alphabetically - Progress bars colored per WoW reputation tier: Hated/Hostile/Unfriendly/Neutral/Friendly/Honored/Revered/Exalted - Add public getFactionNamePublic() backed by DBC name cache with lazy load
This commit is contained in:
parent
26eefe9529
commit
deed8011d7
4 changed files with 98 additions and 0 deletions
|
|
@ -16016,5 +16016,13 @@ std::string GameHandler::getFactionName(uint32_t factionId) const {
|
|||
return "faction #" + std::to_string(factionId);
|
||||
}
|
||||
|
||||
const std::string& GameHandler::getFactionNamePublic(uint32_t factionId) const {
|
||||
const_cast<GameHandler*>(this)->loadFactionNameCache();
|
||||
auto it = factionNameCache_.find(factionId);
|
||||
if (it != factionNameCache_.end()) return it->second;
|
||||
static const std::string empty;
|
||||
return empty;
|
||||
}
|
||||
|
||||
} // namespace game
|
||||
} // namespace wowee
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue