mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix post-hearthstone asset gaps and add quest tracker interactivity
Hearthstone post-teleport fix: - Expand same-map hearthstone precache from 5x5 to 9x9 tiles so workers have more tiles parsed before the player arrives at the bind point - After same-map teleport arrival, enqueue the full load-radius tile grid (17x17 = 289 tiles) at the new position so background workers immediately start loading all WMOs/M2s visible from the new location Quest tracker improvements: - Clicking a quest in the tracker now opens the Quest Log (L) - Remove NoInputs flag so the tracker window receives mouse events - Show only tracked quests in tracker; fall back to all quests if none tracked - Add Track/Untrack button in Quest Log details panel - Abandoning a quest automatically untracks it - Track state stored in GameHandler::trackedQuestIds_ (per-session)
This commit is contained in:
parent
682f47f66b
commit
fb80b125bd
4 changed files with 72 additions and 15 deletions
|
|
@ -966,6 +966,12 @@ public:
|
|||
const std::vector<QuestLogEntry>& getQuestLog() const { return questLog_; }
|
||||
void abandonQuest(uint32_t questId);
|
||||
bool requestQuestQuery(uint32_t questId, bool force = false);
|
||||
bool isQuestTracked(uint32_t questId) const { return trackedQuestIds_.count(questId) > 0; }
|
||||
void setQuestTracked(uint32_t questId, bool tracked) {
|
||||
if (tracked) trackedQuestIds_.insert(questId);
|
||||
else trackedQuestIds_.erase(questId);
|
||||
}
|
||||
const std::unordered_set<uint32_t>& getTrackedQuestIds() const { return trackedQuestIds_; }
|
||||
bool isQuestQueryPending(uint32_t questId) const {
|
||||
return pendingQuestQueryIds_.count(questId) > 0;
|
||||
}
|
||||
|
|
@ -1981,6 +1987,7 @@ private:
|
|||
// Quest log
|
||||
std::vector<QuestLogEntry> questLog_;
|
||||
std::unordered_set<uint32_t> pendingQuestQueryIds_;
|
||||
std::unordered_set<uint32_t> trackedQuestIds_;
|
||||
bool pendingLoginQuestResync_ = false;
|
||||
float pendingLoginQuestResyncTimeout_ = 0.0f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue