Add HUD hiding to tutorial

This commit is contained in:
Ryan Huffman 2016-10-19 10:45:51 -07:00
parent c0e372c380
commit acb44d021c

View file

@ -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;
}
}
};