feat: show area discovery toast with XP gain when exploring new zones

This commit is contained in:
Kelsi 2026-03-12 15:42:55 -07:00
parent 98ad71df0d
commit 77879769d3
4 changed files with 99 additions and 0 deletions

View file

@ -519,6 +519,14 @@ private:
std::string achievementToastName_;
void renderAchievementToast();
// Area discovery toast ("Discovered! <AreaName> +XP XP")
static constexpr float DISCOVERY_TOAST_DURATION = 4.0f;
float discoveryToastTimer_ = 0.0f;
std::string discoveryToastName_;
uint32_t discoveryToastXP_ = 0;
bool areaDiscoveryCallbackSet_ = false;
void renderDiscoveryToast();
// Zone discovery text ("Entering: <ZoneName>")
static constexpr float ZONE_TEXT_DURATION = 5.0f;
float zoneTextTimer_ = 0.0f;