Add zone discovery text: 'Entering: <ZoneName>' fades in on zone change

Polls the renderer's currentZoneName each frame and triggers a 5-second
fade-in/hold/fade-out toast at the upper-centre of screen when the zone
changes.  Matches WoW's standard zone transition display.
This commit is contained in:
Kelsi 2026-03-09 17:06:12 -07:00
parent c14bb791a0
commit 6d1f3c4caf
2 changed files with 75 additions and 0 deletions

View file

@ -347,6 +347,13 @@ private:
uint32_t achievementToastId_ = 0;
void renderAchievementToast();
// Zone discovery text ("Entering: <ZoneName>")
static constexpr float ZONE_TEXT_DURATION = 5.0f;
float zoneTextTimer_ = 0.0f;
std::string zoneTextName_;
std::string lastKnownZoneName_;
void renderZoneText();
public:
void triggerDing(uint32_t newLevel);
void triggerAchievementToast(uint32_t achievementId);