0ad/source/scriptinterface
wraitii 8b08f4ae7a Change GUI settings to explicitly be member variables.
Completes work starting in D2313 / a33fd55e81:
- Make C++ mistakes where values can be changed without messages being
sent easier to notice / harder to do.
- Make the IGUISetting interface more flexible, allowing custom settings
implementing their own logic. This is used to clean up hotkey code
introduced in 33af6da5e1.

Side effects:
- FromJSVal_Vector clears the vector being passed in. I have some vague
memory of not doing that in D24 / 2bae30c454 as an optimisation, but it
seems more like a footgun to me.
- Most usage of SetSettingFromString is replaced by direct method calls,
as we can generally cast to the proper GUI object type. Where we can't,
it is kept as a poor's man virtual dispatch.
- It moves a few member variables elsewhere, e.g. TextOwner now gets its
own member variable settings.

Differential Revision: https://code.wildfiregames.com/D3892
This was SVN commit r25392.
2021-05-06 08:22:37 +00:00
..
tests Replace ScriptInterface::Call* with new ScriptFunction functions 2021-05-01 14:04:53 +00:00
FunctionWrapper.h Replace ScriptInterface::Call* with new ScriptFunction functions 2021-05-01 14:04:53 +00:00
ScriptContext.cpp Set a stack quota for JS scripts to prevent crashes from infinite loops. 2021-04-16 16:49:18 +00:00
ScriptContext.h Removes unused containers included in headers. 2021-03-03 23:01:08 +00:00
ScriptConversions.cpp Throw errors instead of warnings on wrong implicit conversions. 2021-05-03 15:44:06 +00:00
ScriptConversions.h Change GUI settings to explicitly be member variables. 2021-05-06 08:22:37 +00:00
ScriptEngine.h Address concerns in 5473393e30 (RL interface) 2021-01-15 16:30:05 +00:00
ScriptExceptions.cpp Throw errors instead of warnings on wrong implicit conversions. 2021-05-03 15:44:06 +00:00
ScriptExceptions.h [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
ScriptExtraHeaders.h Fix some warnings. 2021-05-02 15:45:40 +00:00
ScriptForward.h Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
ScriptInterface.cpp Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
ScriptInterface.h Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
ScriptRequest.h Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
ScriptStats.cpp [SM78 2/2] Update to Spidermonkey 78 APIs 2020-12-06 14:03:02 +00:00
ScriptStats.h Further header & precompiled cleanup, fix no-PCH builds. 2020-12-09 14:39:14 +00:00
ScriptTypes.h [SM78 1/2] Upgrade Spidermonkey build system and binaries to 78.6.0 2020-12-06 14:00:57 +00:00