mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: show queued spell icon in cast bar and expose getQueuedSpellId()
When a spell is queued in the 400ms window before the current cast ends, render its icon dimmed (0.8 alpha) to the right of the cast bar progress, with a "Queued: <name>" tooltip. The progress bar shrinks to accommodate the icon when one is present. Also exposes getQueuedSpellId() as a public const accessor on GameHandler so the UI can observe the spell queue state without friend access.
This commit is contained in:
parent
277a26b351
commit
5f3bc79653
2 changed files with 25 additions and 3 deletions
|
|
@ -807,6 +807,9 @@ public:
|
|||
int getCraftQueueRemaining() const { return craftQueueRemaining_; }
|
||||
uint32_t getCraftQueueSpellId() const { return craftQueueSpellId_; }
|
||||
|
||||
// 400ms spell-queue window: next spell to cast when current finishes
|
||||
uint32_t getQueuedSpellId() const { return queuedSpellId_; }
|
||||
|
||||
// Unit cast state (tracked per GUID for target frame + boss frames)
|
||||
struct UnitCastState {
|
||||
bool casting = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue