mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 09:06:35 +00:00
f9b529f2fb
f0d9806b3fadded a problem: Engine.GetGuiObjectByName is unaware of the caller GUI page. So GUI pages in the background that still run the onTick and other event code tried to look on the topmost GUI page, rather than their own GUI page.9674c3c0feadded a workaround that has to be copied to any place that can call JS code. If developers don't know about the reason for this workaround and add a new place that can call JS code (#5369), they won't be able to implement anything. This removes this workaround by passing the pointer to the correct GUI page as callback data. Patch By: elexis Reviewed By: wraitii Refs #5369 Trac Tickets: #5369 Differential Revision: https://code.wildfiregames.com/D1701 This was SVN commit r22200.