mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: add cooldown tracker panel showing all active spell cooldowns
A new opt-in panel (Settings > Interface > Show Cooldown Tracker) lists all spells currently on cooldown, sorted longest-to-shortest, with spell icons and color-coded remaining time (red>30s, orange>10s, yellow>5s, green<5s). Adds getSpellCooldowns() accessor to GameHandler. Setting persists to ~/.wowee/settings.cfg.
This commit is contained in:
parent
c503bc9432
commit
78ad20f95d
3 changed files with 107 additions and 0 deletions
|
|
@ -983,6 +983,7 @@ public:
|
|||
|
||||
// Cooldowns
|
||||
float getSpellCooldown(uint32_t spellId) const;
|
||||
const std::unordered_map<uint32_t, float>& getSpellCooldowns() const { return spellCooldowns; }
|
||||
|
||||
// Player GUID
|
||||
uint64_t getPlayerGuid() const { return playerGuid; }
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@ private:
|
|||
void renderRepBar(game::GameHandler& gameHandler);
|
||||
void renderCastBar(game::GameHandler& gameHandler);
|
||||
void renderMirrorTimers(game::GameHandler& gameHandler);
|
||||
void renderCooldownTracker(game::GameHandler& gameHandler);
|
||||
void renderCombatText(game::GameHandler& gameHandler);
|
||||
void renderRaidWarningOverlay(game::GameHandler& gameHandler);
|
||||
void renderPartyFrames(game::GameHandler& gameHandler);
|
||||
|
|
@ -525,6 +526,9 @@ private:
|
|||
std::string lastKnownZoneName_;
|
||||
void renderZoneText();
|
||||
|
||||
// Cooldown tracker
|
||||
bool showCooldownTracker_ = false;
|
||||
|
||||
// DPS / HPS meter
|
||||
bool showDPSMeter_ = false;
|
||||
float dpsCombatAge_ = 0.0f; // seconds in current combat (for accurate early-combat DPS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue