0ad/source/gui/scripting
wraitii f9b529f2fb Remove workaround in GetGUIObjectByName
f0d9806b3f added 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.
9674c3c0fe added 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.
2019-04-20 15:49:42 +00:00
..
GuiScriptConversions.cpp Replace input.js doubleclick hack and ease doubleclicking on moving units. 2017-04-22 01:24:03 +00:00
JSInterface_GUIManager.cpp Remove workaround in GetGUIObjectByName 2019-04-20 15:49:42 +00:00
JSInterface_GUIManager.h Add missing ScriptInterface includes to 2018-04-27 16:48:44 +00:00
JSInterface_GUITypes.cpp SpiderMonkey-related changes in preparation for the upgrade to SpiderMonkey 45, refs #4893. 2019-01-13 16:37:41 +00:00
JSInterface_GUITypes.h Add missing ScriptInterface includes to 2018-04-27 16:48:44 +00:00
JSInterface_IGUIObject.cpp Add a GetTextSize() method to GUI objects 2019-03-18 22:15:40 +00:00
JSInterface_IGUIObject.h Add a GetTextSize() method to GUI objects 2019-03-18 22:15:40 +00:00
ScriptFunctions.cpp Move UserReporter C++/JS functions from JSInterface_Debug.cpp to JSInterface_UserReport.cpp, refs #4772. 2018-08-22 12:48:27 +00:00
ScriptFunctions.h # Rewrite of the game's simulation system 2010-01-09 19:20:14 +00:00