1
0
forked from 0ad/0ad
0ad/source/gui/scripting
elexis 85a622b13a Implement IGUIObject settings as a template class and IGUIObject::AddSetting as a template function.
This means the type information is available for all methods operating
with the setting type, which is easier for the authors, allows for
compile-time checks and optimizations.
Remove the enum that was used to indirectly obtain the setting type at
runtime.
Revises SGUISetting and enum from e326ebae46 (5122b0f906),
std::function from 82f1d2718b.

Differential Revision: https://code.wildfiregames.com/D2145
Tested on: gcc, clang, VS2015, Jenkins

This was SVN commit r22604.
2019-08-04 02:20:08 +00:00
..
GuiScriptConversions.cpp Introduce a JSInterface_IGUITextOwner to encapsulate JSI_IGUIObject::getTextSize from 9c5062147a / D844. 2019-08-02 16:55:15 +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 Use ToJSVal for JS_NewStringCopyZ to improve encapsulation and consistency and remove a snprintf call. 2019-07-23 15:17:35 +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 Implement IGUIObject settings as a template class and IGUIObject::AddSetting as a template function. 2019-08-04 02:20:08 +00:00
JSInterface_IGUIObject.h Delete unused broken JSI_IGUIObject::construct. 2019-07-23 01:24:49 +00:00
JSInterface_IGUITextOwner.cpp Fix JSInterface_IGUITextOwner build on VS2015 following 3d07327837 (which works on gcc, clang and Jenkins), reported by minohaka. 2019-08-03 17:52:56 +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