From 280c5d24605490b3de71f38dd8e917201ead4fd8 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Tue, 13 Dec 2016 11:37:38 -0800 Subject: [PATCH] Add back step names in tutorial --- tutorial/tutorial.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tutorial/tutorial.js b/tutorial/tutorial.js index 5ebbad58d6..2758992cb3 100644 --- a/tutorial/tutorial.js +++ b/tutorial/tutorial.js @@ -419,6 +419,7 @@ function reenableEverything() { // // /////////////////////////////////////////////////////////////////////////////// var stepStart = function() { + this.name = 'start'; }; stepStart.prototype = { start: function(onFinish) { @@ -463,6 +464,7 @@ stepEnableControllers.prototype = { // // /////////////////////////////////////////////////////////////////////////////// var stepOrient = function(tutorialManager) { + this.name = 'orient'; this.tags = ["orient", "orient-" + tutorialManager.controllerName]; } stepOrient.prototype = { @@ -516,6 +518,7 @@ stepOrient.prototype = { // // /////////////////////////////////////////////////////////////////////////////// var stepNearGrab = function() { + this.name = 'nearGrab'; this.tag = "nearGrab"; this.tempTag = "nearGrab-temporary"; this.birdIDs = []; @@ -589,6 +592,7 @@ stepNearGrab.prototype = { // // /////////////////////////////////////////////////////////////////////////////// var stepFarGrab = function() { + this.name = 'farGrab'; this.tag = "farGrab"; this.tempTag = "farGrab-temporary"; this.finished = true; @@ -694,6 +698,8 @@ PositionWatcher.prototype = { var stepEquip = function(tutorialManager) { const controllerName = tutorialManager.controllerName; + this.name = 'equip'; + this.tags = ["equip", "equip-" + controllerName]; this.tagsPart1 = ["equip-part1", "equip-part1-" + controllerName]; this.tagsPart2 = ["equip-part2", "equip-part2-" + controllerName]; @@ -834,6 +840,8 @@ stepEquip.prototype = { // // /////////////////////////////////////////////////////////////////////////////// var stepTurnAround = function(tutorialManager) { + this.name = 'turnAround'; + this.tags = ["turnAround", "turnAround-" + tutorialManager.controllerName]; this.tempTag = "turnAround-temporary"; @@ -922,6 +930,8 @@ stepTurnAround.prototype = { // // /////////////////////////////////////////////////////////////////////////////// var stepTeleport = function(tutorialManager) { + this.name = 'teleport'; + this.tags = ["teleport", "teleport-" + tutorialManager.controllerName]; this.tempTag = "teleport-temporary"; } @@ -984,6 +994,8 @@ stepTeleport.prototype = { // // /////////////////////////////////////////////////////////////////////////////// var stepFinish = function() { + this.name = 'finish'; + this.tag = "finish"; this.tempTag = "finish-temporary"; } @@ -999,6 +1011,8 @@ stepFinish.prototype = { }; var stepCleanupFinish = function() { + this.name = 'cleanup'; + this.shouldLog = false; } stepCleanupFinish.prototype = { @@ -1073,7 +1087,7 @@ TutorialManager = function() { this.onFinish = function() { debug("onFinish", currentStepNum); if (currentStep && currentStep.shouldLog !== false) { - self.trackStep(currentStep.tag, currentStepNum); + self.trackStep(currentStep.name, currentStepNum); } self.startNextStep();