0ad/source/gui/scripting
elexis a84e2e57df Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid.
Make that function static, so that it can be used for these functions
without slowly having to obtain the ScriptInterface instance using
GetScriptInterfaceAndCBData just to get the JSContext again.
Remove few redundant conversions for CreateObject arguments.

Differential Revision: https://code.wildfiregames.com/D2128
Tested on: gcc 9.1.0, clang 8.0.1, Jenkins
Tedious performance testing in: D2128, D2127

This was SVN commit r22894.
2019-09-13 00:56:51 +00:00
..
GuiScriptConversions.cpp Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
JSInterface_GUIManager.cpp Support assigning functions to hotkeys from the JS GUI without involving a GUI object. 2019-09-05 10:42:16 +00:00
JSInterface_GUIManager.h Support assigning functions to hotkeys from the JS GUI without involving a GUI object. 2019-09-05 10:42:16 +00:00
JSInterface_GUITypes.cpp Add ToJSVal<CRect> to make the conversion reusable, remove unused PSERROR_Scripting_ConversionFailed and dead catch. 2019-09-04 16:15:37 +00:00
JSInterface_GUITypes.h Delete JSClass JSI_GUIColor / GUIColor from af9c336b43, refs #5387, D1699. 2019-07-23 14:22:27 +00:00
JSInterface_IGUIObject.cpp Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
JSInterface_IGUIObject.h Upgrade SpiderMonkey to version 45.0.2, refs #4893. 2019-08-07 22:37:43 +00:00
JSInterface_IGUITextOwner.cpp Replace JS_THIS_OBJECT and JS::CallReceiver in preparation for SpiderMonkey 49 and 61. 2019-08-13 14:11:43 +00:00
JSInterface_IGUITextOwner.h Introduce a JSInterface_IGUITextOwner to encapsulate JSI_IGUIObject::getTextSize from 9c5062147a / D844. 2019-08-02 16:55:15 +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