Now any menu item can be triggered. Plus you can do a Window.isPhysicsEnabled to detect when we are done loading assets and such. Whee!
Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -206,3 +206,7 @@ void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) { · 205 unmodified lines | |||
| 206 | void WindowScriptingInterface::shareSnapshot(const QString& path) { | 206 | void WindowScriptingInterface::shareSnapshot(const QString& path) { |
| 207 | qApp->shareSnapshot(path); | 207 | qApp->shareSnapshot(path); |
| 208 | } | 208 | } |
| 209 | |||
| 210 | bool WindowScriptingInterface::isPhysicsEnabled() { | ||
| 211 | return qApp->isPhysicsEnabled(); | ||
| 212 | } | ||