mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: add quest completion toast notification
When a quest is turned in (SMSG_QUESTGIVER_QUEST_COMPLETE), a gold-bordered toast slides in from the right showing "Quest Complete" header with the quest title, consistent with the rep change and achievement toast systems.
This commit is contained in:
parent
71df1ccf6f
commit
b34bf39746
4 changed files with 90 additions and 0 deletions
|
|
@ -4381,6 +4381,10 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
}
|
||||
for (auto it = questLog_.begin(); it != questLog_.end(); ++it) {
|
||||
if (it->questId == questId) {
|
||||
// Fire toast callback before erasing
|
||||
if (questCompleteCallback_) {
|
||||
questCompleteCallback_(questId, it->title);
|
||||
}
|
||||
questLog_.erase(it);
|
||||
LOG_INFO(" Removed quest ", questId, " from quest log");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue