mirror of
https://github.com/lubosz/overte.git
synced 2025-04-18 07:56:57 +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() {
|
||||
|
||||
var MINIMUM_LIGHT_INTENSITY = 50.0;
|
||||
|
@ -48,4 +49,4 @@
|
|||
return new FlickeringFlame
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
@ -226,6 +226,10 @@ stepDisableControllers.prototype = {
|
|||
}));
|
||||
setControllerPartLayer('touchpad', 'blank');
|
||||
setControllerPartLayer('tips', 'blank');
|
||||
|
||||
hideEntitiesWithTag('finish');
|
||||
onFinish();
|
||||
|
||||
onFinish();
|
||||
},
|
||||
cleanup: function() {
|
||||
|
@ -929,11 +933,25 @@ stepFinish.prototype = {
|
|||
start: function(onFinish) {
|
||||
editEntitiesWithTag('door', { visible: false });
|
||||
showEntitiesWithTag(this.tag);
|
||||
Settings.setValue("tutorialComplete", true);
|
||||
onFinish();
|
||||
},
|
||||
cleanup: function() {
|
||||
//Menu.setIsOptionChecked("Overlays", true);
|
||||
hideEntitiesWithTag(this.tag);
|
||||
deleteEntitiesWithTag(this.tempTag);
|
||||
//hideEntitiesWithTag(this.tag);
|
||||
//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;
|
||||
startedTutorialAt = Date.now();
|
||||
STEPS = [
|
||||
//new stepCleanupFinish("finish");
|
||||
new stepDisableControllers("step0"),
|
||||
new stepOrient("orient"),
|
||||
//new stepWelcome("welcome"),
|
||||
|
@ -1011,7 +1030,7 @@ TutorialManager = function() {
|
|||
for (var i = 0; i < STEPS.length; ++i) {
|
||||
STEPS[i].cleanup();
|
||||
}
|
||||
location = "/tutorial_begin";
|
||||
//location = "/tutorial_begin";
|
||||
//location = "/tutorial";
|
||||
MyAvatar.shouldRenderLocally = false;
|
||||
this.startNextStep();
|
||||
|
|
Loading…
Reference in a new issue