History

Expose triggerOption to scripts, plus _physicsEnabled

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!

David Kelly committed 10 years ago

Commit 621e3fc1 parent b69a49d5 files · +14 −1Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 5 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+4−0
@@ -206,3 +206,7 @@ void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) { · 205 unmodified lines
206206 void WindowScriptingInterface::shareSnapshot(const QString& path) {
207207 qApp->shareSnapshot(path);
208208 }
209+
210+bool WindowScriptingInterface::isPhysicsEnabled() {
211+ return qApp->isPhysicsEnabled();
212+}