mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
ef4cf461a5
commit
9368c8a715
2 changed files with 37 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue