mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-01 19:23:51 +00:00
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:
parent
2365091266
commit
aa164478e1
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue