Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -108,6 +108,15 @@ void HMDScriptingInterface::openTablet(bool contextualMode) { · 107 unmodified lines | |||
| 108 | _tabletContextualMode = contextualMode; | 108 | _tabletContextualMode = contextualMode; |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | void HMDScriptingInterface::toggleShouldShowTablet() { | ||
| 112 | setShouldShowTablet(!getShouldShowTablet()); | ||
| 113 | } | ||
| 114 | |||
| 115 | void HMDScriptingInterface::setShouldShowTablet(bool value) { | ||
| 116 | _showTablet = value; | ||
| 117 | _tabletContextualMode = false; | ||
| 118 | } | ||
| 119 | |||
| 111 | QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) { | 120 | QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) { |
| 112 | glm::vec3 hudIntersection; | 121 | glm::vec3 hudIntersection; |
| 113 | auto instance = DependencyManager::get<HMDScriptingInterface>(); | 122 | auto instance = DependencyManager::get<HMDScriptingInterface>(); |