toolbar becomes visible after taking a snapshot

This commit is contained in:
Dante Ruiz 2017-03-09 22:54:22 +00:00
parent 3d309f57d4
commit c6c0c6d382
3 changed files with 7 additions and 1 deletions

View file

@ -81,6 +81,10 @@ void HMDScriptingInterface::closeTablet() {
_showTablet = false; _showTablet = false;
} }
void HMDScriptingInterface::openTablet() {
_showTablet = true;
}
QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) { QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) {
glm::vec3 hudIntersection; glm::vec3 hudIntersection;
auto instance = DependencyManager::get<HMDScriptingInterface>(); auto instance = DependencyManager::get<HMDScriptingInterface>();

View file

@ -76,6 +76,8 @@ public:
Q_INVOKABLE void closeTablet(); Q_INVOKABLE void closeTablet();
Q_INVOKABLE void openTablet();
signals: signals:
bool shouldShowHandControllersChanged(); bool shouldShowHandControllersChanged();

View file

@ -191,12 +191,12 @@ function resetButtons(pathStillSnapshot, pathAnimatedSnapshot, notify) {
if (clearOverlayWhenMoving) { if (clearOverlayWhenMoving) {
MyAvatar.setClearOverlayWhenMoving(true); // not until after the share dialog MyAvatar.setClearOverlayWhenMoving(true); // not until after the share dialog
} }
HMD.openTablet();
} }
function processingGif() { function processingGif() {
// show hud // show hud
Reticle.visible = reticleVisible; Reticle.visible = reticleVisible;
button.clicked.disconnect(onClicked); button.clicked.disconnect(onClicked);
buttonConnected = false; buttonConnected = false;
// show overlays if they were on // show overlays if they were on