mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: show Elite/Rare/Boss classification badge in target frame
Reads creature rank (0=Normal, 1=Elite, 2=RareElite, 3=Boss, 4=Rare) from the existing creatureInfoCache populated by creature query responses. Shows a colored badge next to the level: gold for Elite, purple for Rare Elite, red for Boss, cyan for Rare — each with a tooltip. Adds getCreatureRank() accessor to GameHandler for UI use.
This commit is contained in:
parent
a03ee33f8c
commit
8cb0f1d0ef
2 changed files with 27 additions and 0 deletions
|
|
@ -548,6 +548,12 @@ public:
|
|||
}
|
||||
std::string getCachedPlayerName(uint64_t guid) const;
|
||||
std::string getCachedCreatureName(uint32_t entry) const;
|
||||
// Returns the creature rank (0=Normal,1=Elite,2=RareElite,3=Boss,4=Rare)
|
||||
// or -1 if not cached yet
|
||||
int getCreatureRank(uint32_t entry) const {
|
||||
auto it = creatureInfoCache.find(entry);
|
||||
return (it != creatureInfoCache.end()) ? static_cast<int>(it->second.rank) : -1;
|
||||
}
|
||||
|
||||
// ---- Phase 2: Combat ----
|
||||
void startAutoAttack(uint64_t targetGuid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue