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:
Kelsi 2026-03-12 04:57:36 -07:00
parent b34bf39746
commit b682e8c686
3 changed files with 35 additions and 1 deletions

View file

@ -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_; }