feat: show area trigger messages as screen banners

SMSG_AREA_TRIGGER_MESSAGE events (dungeon enter messages, objective
triggers, etc.) were previously only appended to chat. Now they also
appear as animated slide-up toasts in the lower-center of the screen:
blue-bordered dark panel with light-blue text, 4.5s lifetime with
35ms slide-in/out animation. Up to 4 simultaneous toasts stack
vertically. Messages still go to chat as before.
This commit is contained in:
Kelsi 2026-03-12 11:06:40 -07:00
parent 9fe7bbf826
commit 20fef40b7b
4 changed files with 85 additions and 1 deletions

View file

@ -3877,7 +3877,10 @@ void GameHandler::handlePacket(network::Packet& packet) {
if (packet.getSize() - packet.getReadPos() >= 4) {
/*uint32_t len =*/ packet.readUInt32();
std::string msg = packet.readString();
if (!msg.empty()) addSystemChatMessage(msg);
if (!msg.empty()) {
addSystemChatMessage(msg);
areaTriggerMsgs_.push_back(msg);
}
}
break;
}