feat: add confirmation dialog before spending talent points

Clicking a learnable talent now opens a modal confirmation popup
showing the spell name and rank, preventing accidental talent spending.
This commit is contained in:
Kelsi 2026-03-18 11:23:35 -07:00
parent ef4cf461a5
commit 9368c8a715
2 changed files with 37 additions and 3 deletions

View file

@ -45,6 +45,12 @@ private:
std::unordered_map<uint32_t, std::string> spellTooltips; // spellId -> description
std::unordered_map<uint32_t, VkDescriptorSet> bgTextureCache_; // tabId -> bg texture
// Talent learn confirmation
bool talentConfirmOpen_ = false;
uint32_t pendingTalentId_ = 0;
uint32_t pendingTalentRank_ = 0;
std::string pendingTalentName_;
// GlyphProperties.dbc cache: glyphId -> { spellId, isMajor }
struct GlyphInfo { uint32_t spellId = 0; bool isMajor = false; };
std::unordered_map<uint32_t, GlyphInfo> glyphProperties_; // glyphId -> info