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:
Kelsi 2026-03-12 04:53:03 -07:00
parent 71df1ccf6f
commit b34bf39746
4 changed files with 90 additions and 0 deletions

View file

@ -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;