mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 00:03:50 +00:00
feat: add countdown timer to loot roll popup
Show a color-coded progress bar (green→yellow→pulsing red) in the loot roll window indicating time remaining to make a roll decision. The countdown duration is read from SMSG_LOOT_START_ROLL (or defaults to 60s for the SMSG_LOOT_ROLL path). Remaining seconds are displayed on the bar itself.
This commit is contained in:
parent
b34bf39746
commit
b682e8c686
3 changed files with 35 additions and 1 deletions
|
|
@ -1129,6 +1129,8 @@ public:
|
|||
uint32_t itemId = 0;
|
||||
std::string itemName;
|
||||
uint8_t itemQuality = 0;
|
||||
uint32_t rollCountdownMs = 60000; // Duration of roll window in ms
|
||||
std::chrono::steady_clock::time_point rollStartedAt{};
|
||||
};
|
||||
bool hasPendingLootRoll() const { return pendingLootRollActive_; }
|
||||
const LootRollEntry& getPendingLootRoll() const { return pendingLootRoll_; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue