mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Cleanup client controller display implementation in tutorial
This commit is contained in:
parent
d577493d5e
commit
8a7f67c849
1 changed files with 4 additions and 5 deletions
|
@ -250,10 +250,10 @@ var stepDisableControllers = function(name) {
|
|||
}
|
||||
stepDisableControllers.prototype = {
|
||||
start: function(onFinish) {
|
||||
HMD.requestShowHandControllers();
|
||||
|
||||
disableEverything();
|
||||
|
||||
HMD.requestShowHandControllers();
|
||||
|
||||
onFinish();
|
||||
},
|
||||
cleanup: function() {
|
||||
|
@ -276,8 +276,6 @@ function disableEverything() {
|
|||
|
||||
hideEntitiesWithTag('finish');
|
||||
|
||||
controllerDisplayManager = new ControllerDisplayManager();
|
||||
|
||||
setAwayEnabled(false);
|
||||
}
|
||||
|
||||
|
@ -295,7 +293,6 @@ function reenableEverything() {
|
|||
setControllerPartLayer('touchpad', 'blank');
|
||||
setControllerPartLayer('tips', 'blank');
|
||||
MyAvatar.shouldRenderLocally = true;
|
||||
HMD.requestHideHandControllers();
|
||||
setAwayEnabled(true);
|
||||
}
|
||||
|
||||
|
@ -313,6 +310,7 @@ var stepEnableControllers = function(name) {
|
|||
stepEnableControllers.prototype = {
|
||||
start: function(onFinish) {
|
||||
reenableEverything();
|
||||
HMD.requestHideHandControllers();
|
||||
onFinish();
|
||||
},
|
||||
cleanup: function() {
|
||||
|
@ -1099,6 +1097,7 @@ TutorialManager = function() {
|
|||
this.stopTutorial = function() {
|
||||
if (currentStep) {
|
||||
currentStep.cleanup();
|
||||
HMD.requestHideHandControllers();
|
||||
}
|
||||
reenableEverything();
|
||||
currentStepNum = -1;
|
||||
|
|
Loading…
Reference in a new issue