mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
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:
parent
c14bb791a0
commit
6d1f3c4caf
2 changed files with 75 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue