mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 00:44:38 +02:00
Add HUD hiding to tutorial
This commit is contained in:
parent
c0e372c380
commit
acb44d021c
1 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,7 @@ if (!Function.prototype.bind) {
|
||||||
setAwayEnabled(false);
|
setAwayEnabled(false);
|
||||||
Menu.setIsOptionChecked("Overlays", false);
|
Menu.setIsOptionChecked("Overlays", false);
|
||||||
MyAvatar.shouldRenderLocally = false;
|
MyAvatar.shouldRenderLocally = false;
|
||||||
|
Toolbars.getToolbar("com.highfidelity.interface.toolbar.system").writeProperty("visible", false);
|
||||||
this.token = new OwnershipToken(Math.random() * 100000, this.entityID, {
|
this.token = new OwnershipToken(Math.random() * 100000, this.entityID, {
|
||||||
onGainedOwnership: function(token) {
|
onGainedOwnership: function(token) {
|
||||||
print("TutorialZone | GOT OWNERSHIP");
|
print("TutorialZone | GOT OWNERSHIP");
|
||||||
|
@ -108,6 +109,7 @@ if (!Function.prototype.bind) {
|
||||||
Menu.setIsOptionChecked("Overlays", true);
|
Menu.setIsOptionChecked("Overlays", true);
|
||||||
MyAvatar.shouldRenderLocally = true;
|
MyAvatar.shouldRenderLocally = true;
|
||||||
setAwayEnabled(true);
|
setAwayEnabled(true);
|
||||||
|
Toolbars.getToolbar("com.highfidelity.interface.toolbar.system").writeProperty("visible", true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -121,6 +123,10 @@ if (!Function.prototype.bind) {
|
||||||
this.token.destroy();
|
this.token.destroy();
|
||||||
this.token = null;
|
this.token = null;
|
||||||
}
|
}
|
||||||
|
if (self.tutorialManager) {
|
||||||
|
self.tutorialManager.stopTutorial();
|
||||||
|
self.tutorialManager = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue