mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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);
|
||||
Menu.setIsOptionChecked("Overlays", false);
|
||||
MyAvatar.shouldRenderLocally = false;
|
||||
Toolbars.getToolbar("com.highfidelity.interface.toolbar.system").writeProperty("visible", false);
|
||||
this.token = new OwnershipToken(Math.random() * 100000, this.entityID, {
|
||||
onGainedOwnership: function(token) {
|
||||
print("TutorialZone | GOT OWNERSHIP");
|
||||
|
@ -108,6 +109,7 @@ if (!Function.prototype.bind) {
|
|||
Menu.setIsOptionChecked("Overlays", true);
|
||||
MyAvatar.shouldRenderLocally = 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 = null;
|
||||
}
|
||||
if (self.tutorialManager) {
|
||||
self.tutorialManager.stopTutorial();
|
||||
self.tutorialManager = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue