feat: fire DISPLAY_SIZE_CHANGED and UNIT_QUEST_LOG_CHANGED events

DISPLAY_SIZE_CHANGED fires when the window is resized via
SDL_WINDOWEVENT_RESIZED, allowing UI addons to adapt their layout
to the new screen dimensions (5 FrameXML registrations).

UNIT_QUEST_LOG_CHANGED("player") fires alongside QUEST_LOG_UPDATE
at all 6 quest log modification points, for addons that register
for this variant instead (4 FrameXML registrations).
This commit is contained in:
Kelsi 2026-03-22 19:29:06 -07:00
parent 2365091266
commit aa164478e1

View file

@ -734,6 +734,9 @@ void Application::run() {
if (renderer && renderer->getCamera()) {
renderer->getCamera()->setAspectRatio(static_cast<float>(newWidth) / newHeight);
}
// Notify addons so UI layouts can adapt to the new size
if (addonManager_)
addonManager_->fireEvent("DISPLAY_SIZE_CHANGED");
}
}
// Debug controls