mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 11:04:02 +02:00
Add tracking of tutorialComplete to tutorial
This commit is contained in:
parent
fd929a46b3
commit
e875981a6a
2 changed files with 24 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
// Originally written for the Home content set. Pulled into the tutorial by Ryan Huffman
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
var MINIMUM_LIGHT_INTENSITY = 50.0;
|
var MINIMUM_LIGHT_INTENSITY = 50.0;
|
||||||
|
@ -48,4 +49,4 @@
|
||||||
return new FlickeringFlame
|
return new FlickeringFlame
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -226,6 +226,10 @@ stepDisableControllers.prototype = {
|
||||||
}));
|
}));
|
||||||
setControllerPartLayer('touchpad', 'blank');
|
setControllerPartLayer('touchpad', 'blank');
|
||||||
setControllerPartLayer('tips', 'blank');
|
setControllerPartLayer('tips', 'blank');
|
||||||
|
|
||||||
|
hideEntitiesWithTag('finish');
|
||||||
|
onFinish();
|
||||||
|
|
||||||
onFinish();
|
onFinish();
|
||||||
},
|
},
|
||||||
cleanup: function() {
|
cleanup: function() {
|
||||||
|
@ -929,11 +933,25 @@ stepFinish.prototype = {
|
||||||
start: function(onFinish) {
|
start: function(onFinish) {
|
||||||
editEntitiesWithTag('door', { visible: false });
|
editEntitiesWithTag('door', { visible: false });
|
||||||
showEntitiesWithTag(this.tag);
|
showEntitiesWithTag(this.tag);
|
||||||
|
Settings.setValue("tutorialComplete", true);
|
||||||
|
onFinish();
|
||||||
},
|
},
|
||||||
cleanup: function() {
|
cleanup: function() {
|
||||||
//Menu.setIsOptionChecked("Overlays", true);
|
//Menu.setIsOptionChecked("Overlays", true);
|
||||||
hideEntitiesWithTag(this.tag);
|
//hideEntitiesWithTag(this.tag);
|
||||||
deleteEntitiesWithTag(this.tempTag);
|
//deleteEntitiesWithTag(this.tempTag);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var stepCleanupFinish = function() {
|
||||||
|
this.shouldLog = false;
|
||||||
|
}
|
||||||
|
stepCleanupFinish.prototype = {
|
||||||
|
start: function(onFinish) {
|
||||||
|
hideEntitiesWithTag('finish');
|
||||||
|
onFinish();
|
||||||
|
},
|
||||||
|
cleanup: function() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -996,6 +1014,7 @@ TutorialManager = function() {
|
||||||
currentStep = null;
|
currentStep = null;
|
||||||
startedTutorialAt = Date.now();
|
startedTutorialAt = Date.now();
|
||||||
STEPS = [
|
STEPS = [
|
||||||
|
//new stepCleanupFinish("finish");
|
||||||
new stepDisableControllers("step0"),
|
new stepDisableControllers("step0"),
|
||||||
new stepOrient("orient"),
|
new stepOrient("orient"),
|
||||||
//new stepWelcome("welcome"),
|
//new stepWelcome("welcome"),
|
||||||
|
@ -1011,7 +1030,7 @@ TutorialManager = function() {
|
||||||
for (var i = 0; i < STEPS.length; ++i) {
|
for (var i = 0; i < STEPS.length; ++i) {
|
||||||
STEPS[i].cleanup();
|
STEPS[i].cleanup();
|
||||||
}
|
}
|
||||||
location = "/tutorial_begin";
|
//location = "/tutorial_begin";
|
||||||
//location = "/tutorial";
|
//location = "/tutorial";
|
||||||
MyAvatar.shouldRenderLocally = false;
|
MyAvatar.shouldRenderLocally = false;
|
||||||
this.startNextStep();
|
this.startNextStep();
|
||||||
|
|
Loading…
Reference in a new issue