mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
feat: add respawn countdown timer to the death dialog
The "You are dead." dialog now shows a "Release in M:SS" countdown tracking time elapsed since death. The countdown runs from 6 minutes (WoW's forced-release window) and disappears once it reaches zero. Timer resets automatically when the player is no longer dead.
This commit is contained in:
parent
39bf8fb01e
commit
e8fe53650b
2 changed files with 31 additions and 2 deletions
|
|
@ -112,6 +112,12 @@ private:
|
|||
std::vector<ZoneToastEntry> zoneToasts_;
|
||||
std::string lastKnownZone_;
|
||||
static constexpr float kZoneToastLifetime = 3.0f;
|
||||
|
||||
// Death screen: elapsed time since the death dialog first appeared
|
||||
float deathElapsed_ = 0.0f;
|
||||
bool deathTimerRunning_ = false;
|
||||
// WoW forces release after ~6 minutes; show countdown until then
|
||||
static constexpr float kForcedReleaseSec = 360.0f;
|
||||
void renderZoneToasts(float deltaTime);
|
||||
bool showPlayerInfo = false;
|
||||
bool showSocialFrame_ = false; // O key toggles social/friends list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue