Commit graph

85971 commits

Author SHA1 Message Date
Dale Glass
1d81d6c543 Use sampler library if present 2023-03-22 20:40:51 +01:00
Dale Glass
13f789c16c Remove requirement for sampler library
Library is not present on some distributions, like Fedora, and not used in the code currently
2023-03-22 20:40:51 +01:00
3afdb787d6 Script engine new function fixes 2023-03-22 20:40:51 +01:00
c4047cb703 Added context scopes 2023-03-22 20:40:51 +01:00
f0e1327032 Add V8 handle scopes 2023-03-22 20:40:51 +01:00
e1fb864c7a Updated script isolation files 2023-03-22 20:40:51 +01:00
5769e89cff Initial V8 support, not working yet 2023-03-22 20:40:51 +01:00
84c4719775 Initial cmake files for V8 2023-03-22 20:40:51 +01:00
acee9afc4c Added V8 vcpkg files 2023-03-22 20:40:51 +01:00
79e4093f73 Replaced withReadLock with resultWithReadLock in ScriptSignalQtProxy::findConnection 2023-03-22 20:40:51 +01:00
5a4cf06134 Fixes for code review 2023-03-22 20:40:51 +01:00
34fe6de3cb Fix build error on Windows 2023-03-22 20:40:51 +01:00
def8555b99 Added scoring system for determining overloaded function to call 2023-03-22 20:40:51 +01:00
f926e8d30c Fixed clearTimeout behavior when called with expired timer 2023-03-22 20:40:50 +01:00
8494ce867c Added QTimer* script data type and some nullptr checks 2023-03-22 20:40:50 +01:00
46b60e244a Fixed simplifiedNametag 2023-03-22 20:40:50 +01:00
9f4997bb7d Fix build error on MacOS 2023-03-22 20:40:50 +01:00
95834a36f7 Fix for crash on deleting caches 2023-03-22 20:40:50 +01:00
adee1aeadf Fixes to scripting-related warnings (lambdas) 2023-03-22 20:40:50 +01:00
9fe83882e4 Fixes to most scripting-related warnings 2023-03-22 20:40:50 +01:00
3d673acaad Forgot to add ResourceScriptingInterface.cpp before 2023-03-22 20:40:50 +01:00
9b301746ee Replaced regular mutex with a read write one to improve performance 2023-03-22 20:40:50 +01:00
b44a2a9339 Fixed enums in scripting engine 2023-03-22 20:40:50 +01:00
d0b80ce64b Fixed callEntityMethod arguments in grab.js 2023-03-22 20:40:50 +01:00
8d5403362d Type registeration fixes for scripting engine 2023-03-22 20:40:50 +01:00
bf99624086 Fixes to problems with meta-types 2023-03-22 20:40:50 +01:00
13c755903f Proper handling of enum classes for scripting 2023-03-22 20:40:50 +01:00
d9c3fcaa16 Attempt to debug broken enums in scripting 2023-03-22 20:40:50 +01:00
96b4149578 Fixed list item removal during access bug 2023-03-22 20:40:50 +01:00
8349e8e305 Disallowed incorrect Vec3 to float cast in script engine 2023-03-22 20:40:50 +01:00
77981d0a64 Fixed build error after rebase 2023-03-22 20:40:50 +01:00
Heather Anderson
558994d685 fixed missing #include required by new template blockingInvokeMethod functions 2023-03-22 20:40:50 +01:00
Heather Anderson
86f2bc16cc dropped KALILA global script attributes 2023-03-22 20:40:50 +01:00
Heather Anderson
425cf78005 dropped unused meta declaration 2023-03-22 20:40:50 +01:00
Heather Anderson
362d57d881 remove requirement that ScriptManager::evaluate be meta-invokable 2023-03-22 20:40:50 +01:00
Heather Anderson
fec687affe fix typo preventing methods from being discovered on scriptable objects when we're ignoring superclasses 2023-03-22 20:40:50 +01:00
Heather Anderson
71ce8b6bf2 identify the largest number of parameters any of our method overrides accept and discard script parameters beyond that count 2023-03-22 20:40:50 +01:00
Heather Anderson
baf8aef694 force Qt registration of PerformanceManager::PerformancePreset, as it's used as a return datatype in a script-callable function (and doesn't get auto-registered) 2023-03-22 20:40:50 +01:00
Heather Anderson
703a2eee7b minor tweaks in response to code review (very belated) and reported issues
- explicitly registering some enums with Qt at runtime (needed if they're function return values)
- replaced references to engine() with local variables if they already existed
2023-03-22 20:40:50 +01:00
Heather Anderson
81165ea10c Continued tightening and testing of the scripting engine "glue" logic
- QObject wrappers will now be reused when asked to wrap the same QObject multiple times
- improved error reporting when we can't form a native call from script
- dropped support for having the existing QtScript logic handle Qt object transformations
- assuming that our code will handle all calls into native objects
- changing timer functions to use CTimer* publicly rather than casted QObject*
2023-03-22 20:40:50 +01:00
Heather Anderson
115acc157c not sure what would have broken this but... adding required windows dependencies for MIDI to operate 2023-03-22 20:40:49 +01:00
Heather Anderson
521ef65ed8 first pass creating Qt <-> QtScript interface 2023-03-22 20:40:49 +01:00
Heather Anderson
1156275b00 changes from code review suggestions 2023-03-22 20:40:49 +01:00
Heather Anderson
a1696bb850 convert script engine variables from QSharedPointer to std::shared_ptr 2023-03-22 20:40:49 +01:00
Heather Anderson
4389fd1e68 more shifting around of ScriptEngineQtScript declaration 2023-03-22 20:40:49 +01:00
Heather Anderson
69566fa924 more simplification of ScriptEngineQtScript declarations 2023-03-22 20:40:49 +01:00
Heather Anderson
36ff1697da significant cleanup of ScriptEngineQtScript (which isn't exposed to the scripting engine and shouldn't be @jsdoc'ed) 2023-03-22 20:40:49 +01:00
Heather Anderson
b4669e7173 patch review and removal of unnecessary differences 2023-03-22 20:40:49 +01:00
Heather Anderson
3282f1ab99 finished coding and smoketested ScriptContextQtAgent (required to get Scriptable functional for its users) 2023-03-22 20:40:49 +01:00
Heather Anderson
0d39770673 hopefully resolves the last reported link error on macos 2023-03-22 20:40:49 +01:00