mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:37:31 +02:00
Remove name parameter from tutorial steps
This commit is contained in:
parent
4f2e6ba09b
commit
80356bd02d
1 changed files with 34 additions and 35 deletions
|
@ -344,8 +344,8 @@ function playFirecrackerSound(position) {
|
||||||
// STEP: DISABLE CONTROLLERS //
|
// STEP: DISABLE CONTROLLERS //
|
||||||
// //
|
// //
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
var stepStart = function(name) {
|
var stepStart = function() {
|
||||||
this.tag = name;
|
this.tag = "start";
|
||||||
}
|
}
|
||||||
stepStart.prototype = {
|
stepStart.prototype = {
|
||||||
start: function(onFinish) {
|
start: function(onFinish) {
|
||||||
|
@ -402,8 +402,7 @@ function reenableEverything() {
|
||||||
// //
|
// //
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
var stepEnableControllers = function(name) {
|
var stepEnableControllers = function() {
|
||||||
this.tag = name;
|
|
||||||
this.shouldLog = false;
|
this.shouldLog = false;
|
||||||
}
|
}
|
||||||
stepEnableControllers.prototype = {
|
stepEnableControllers.prototype = {
|
||||||
|
@ -446,9 +445,9 @@ stepWelcome.prototype = {
|
||||||
// STEP: Orient and raise hands above head //
|
// STEP: Orient and raise hands above head //
|
||||||
// //
|
// //
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
var stepOrient = function(name) {
|
var stepOrient = function() {
|
||||||
this.tag = name;
|
this.tag = "orient";
|
||||||
this.tempTag = name + "-temporary";
|
this.tempTag = "orient-temporary";
|
||||||
}
|
}
|
||||||
stepOrient.prototype = {
|
stepOrient.prototype = {
|
||||||
start: function(onFinish) {
|
start: function(onFinish) {
|
||||||
|
@ -500,8 +499,8 @@ stepOrient.prototype = {
|
||||||
// //
|
// //
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
var stepNearGrab = function(name) {
|
var stepNearGrab = function(name) {
|
||||||
this.tag = name;
|
this.tag = "nearGrab";
|
||||||
this.tempTag = name + "-temporary";
|
this.tempTag = "nearGrab-temporary";
|
||||||
this.birdIDs = [];
|
this.birdIDs = [];
|
||||||
|
|
||||||
Messages.subscribe("Entity-Exploded");
|
Messages.subscribe("Entity-Exploded");
|
||||||
|
@ -572,9 +571,9 @@ stepNearGrab.prototype = {
|
||||||
// STEP: Far Grab //
|
// STEP: Far Grab //
|
||||||
// //
|
// //
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
var stepFarGrab = function(name) {
|
var stepFarGrab = function() {
|
||||||
this.tag = name;
|
this.tag = "farGrab;
|
||||||
this.tempTag = name + "-temporary";
|
this.tempTag = "farGrab-temporary";
|
||||||
this.finished = true;
|
this.finished = true;
|
||||||
this.birdIDs = [];
|
this.birdIDs = [];
|
||||||
|
|
||||||
|
@ -675,11 +674,11 @@ PositionWatcher.prototype = {
|
||||||
// STEP: Equip //
|
// STEP: Equip //
|
||||||
// //
|
// //
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
var stepEquip = function(name) {
|
var stepEquip = function() {
|
||||||
this.tag = name;
|
this.tag = "equip";
|
||||||
this.tagPart1 = name + "-part1";
|
this.tagPart1 = "equip-part1";
|
||||||
this.tagPart2 = name + "-part2";
|
this.tagPart2 = "equip-part2";
|
||||||
this.tempTag = name + "-temporary";
|
this.tempTag = "equip-temporary";
|
||||||
this.PART1 = 0;
|
this.PART1 = 0;
|
||||||
this.PART2 = 1;
|
this.PART2 = 1;
|
||||||
this.PART3 = 2;
|
this.PART3 = 2;
|
||||||
|
@ -809,9 +808,9 @@ stepEquip.prototype = {
|
||||||
// STEP: Turn Around //
|
// STEP: Turn Around //
|
||||||
// //
|
// //
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
var stepTurnAround = function(name) {
|
var stepTurnAround = function() {
|
||||||
this.tag = name;
|
this.tag = "turnAround";
|
||||||
this.tempTag = name + "-temporary";
|
this.tempTag = "turnAround-temporary";
|
||||||
|
|
||||||
this.onActionBound = this.onAction.bind(this);
|
this.onActionBound = this.onAction.bind(this);
|
||||||
this.numTimesSnapTurnPressed = 0;
|
this.numTimesSnapTurnPressed = 0;
|
||||||
|
@ -895,9 +894,9 @@ stepTurnAround.prototype = {
|
||||||
// STEP: Teleport //
|
// STEP: Teleport //
|
||||||
// //
|
// //
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
var stepTeleport = function(name) {
|
var stepTeleport = function() {
|
||||||
this.tag = name;
|
this.tag = "teleport";
|
||||||
this.tempTag = name + "-temporary";
|
this.tempTag = "teleport-temporary";
|
||||||
}
|
}
|
||||||
stepTeleport.prototype = {
|
stepTeleport.prototype = {
|
||||||
start: function(onFinish) {
|
start: function(onFinish) {
|
||||||
|
@ -955,9 +954,9 @@ stepTeleport.prototype = {
|
||||||
// STEP: Finish //
|
// STEP: Finish //
|
||||||
// //
|
// //
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
var stepFinish = function(name) {
|
var stepFinish = function() {
|
||||||
this.tag = name;
|
this.tag = "finish";
|
||||||
this.tempTag = name + "-temporary";
|
this.tempTag = "finish-temporary";
|
||||||
}
|
}
|
||||||
stepFinish.prototype = {
|
stepFinish.prototype = {
|
||||||
start: function(onFinish) {
|
start: function(onFinish) {
|
||||||
|
@ -1010,15 +1009,15 @@ TutorialManager = function() {
|
||||||
// If Script.generateUUID is not available, default to an empty string.
|
// If Script.generateUUID is not available, default to an empty string.
|
||||||
tutorialID = Script.generateUUID ? Script.generateUUID() : "";
|
tutorialID = Script.generateUUID ? Script.generateUUID() : "";
|
||||||
STEPS = [
|
STEPS = [
|
||||||
new stepStart("start"),
|
new stepStart(),
|
||||||
new stepOrient("orient"),
|
new stepOrient(),
|
||||||
new stepNearGrab("nearGrab"),
|
new stepNearGrab(),
|
||||||
new stepFarGrab("farGrab"),
|
new stepFarGrab(),
|
||||||
new stepEquip("equip"),
|
new stepEquip(),
|
||||||
new stepTurnAround("turnAround"),
|
new stepTurnAround(),
|
||||||
new stepTeleport("teleport"),
|
new stepTeleport(),
|
||||||
new stepFinish("finish"),
|
new stepFinish(),
|
||||||
new stepEnableControllers("enableControllers"),
|
new stepEnableControllers(),
|
||||||
];
|
];
|
||||||
wentToEntryStepNum = STEPS.length;
|
wentToEntryStepNum = STEPS.length;
|
||||||
for (var i = 0; i < STEPS.length; ++i) {
|
for (var i = 0; i < STEPS.length; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue