mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +02:00
Update overlay for tutorial
This commit is contained in:
parent
d9cec7f4c7
commit
c84ccaaac0
3 changed files with 9 additions and 5 deletions
|
@ -221,7 +221,7 @@ stepDisableControllers.prototype = {
|
||||||
farGrabEnabled: false,
|
farGrabEnabled: false,
|
||||||
}));
|
}));
|
||||||
setControllerPartLayer('touchpad', 'blank');
|
setControllerPartLayer('touchpad', 'blank');
|
||||||
setControllerPartLayer('tips', 'grip');
|
setControllerPartLayer('tips', 'blank');
|
||||||
onFinish();
|
onFinish();
|
||||||
},
|
},
|
||||||
cleanup: function() {
|
cleanup: function() {
|
||||||
|
@ -317,7 +317,7 @@ stepOrient.prototype = {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.overlay = new StayInFrontOverlay("model", {
|
this.overlay = new StayInFrontOverlay("model", {
|
||||||
url: "http://hifi-content.s3.amazonaws.com/alan/dev/Prompt-Cards/raiseHands.fbx?11",
|
url: "http://hifi-content.s3.amazonaws.com/alan/dev/Prompt-Cards/welcome.fbx?11",
|
||||||
ignoreRayIntersection: true,
|
ignoreRayIntersection: true,
|
||||||
}, 2, { x: 0, y: 0.3, z: 0 });
|
}, 2, { x: 0, y: 0.3, z: 0 });
|
||||||
|
|
||||||
|
@ -729,6 +729,7 @@ stepEquip.prototype = {
|
||||||
print("Got message", channel, message, sender, MyAvatar.sessionUUID);
|
print("Got message", channel, message, sender, MyAvatar.sessionUUID);
|
||||||
if (channel == "Tutorial-Spinner") {
|
if (channel == "Tutorial-Spinner") {
|
||||||
if (this.currentPart == this.PART1 && message == "wasLit") {
|
if (this.currentPart == this.PART1 && message == "wasLit") {
|
||||||
|
this.currentPart = this.PART2;
|
||||||
hideEntitiesWithTag(this.tagPart1);
|
hideEntitiesWithTag(this.tagPart1);
|
||||||
showEntitiesWithTag(this.tagPart2);
|
showEntitiesWithTag(this.tagPart2);
|
||||||
setControllerPartLayer('tips', 'grip');
|
setControllerPartLayer('tips', 'grip');
|
||||||
|
@ -983,7 +984,7 @@ function startTutorial() {
|
||||||
STEPS = [
|
STEPS = [
|
||||||
new stepDisableControllers("step0"),
|
new stepDisableControllers("step0"),
|
||||||
new stepOrient("orient"),
|
new stepOrient("orient"),
|
||||||
new stepWelcome("welcome"),
|
//new stepWelcome("welcome"),
|
||||||
new stepRaiseAboveHead("raiseHands"),
|
new stepRaiseAboveHead("raiseHands"),
|
||||||
new stepNearGrab("nearGrab"),
|
new stepNearGrab("nearGrab"),
|
||||||
new stepFarGrab("farGrab"),
|
new stepFarGrab("farGrab"),
|
||||||
|
@ -995,7 +996,7 @@ function startTutorial() {
|
||||||
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;
|
||||||
startNextStep();
|
startNextStep();
|
||||||
|
|
|
@ -65,7 +65,7 @@ VIVE_CONTROLLER_CONFIGURATION = {
|
||||||
|
|
||||||
textureName: "Tex.Blank",
|
textureName: "Tex.Blank",
|
||||||
|
|
||||||
defaultTextureLayer: "trigger",
|
defaultTextureLayer: "blank",
|
||||||
textureLayers: {
|
textureLayers: {
|
||||||
blank: {
|
blank: {
|
||||||
defaultTextureURL: viveTipsModelURL + "/Controller-Tips.fbm/Blank.png",
|
defaultTextureURL: viveTipsModelURL + "/Controller-Tips.fbm/Blank.png",
|
||||||
|
|
|
@ -78,6 +78,9 @@
|
||||||
_this.explodeWithColor();
|
_this.explodeWithColor();
|
||||||
_this.smokePuff();
|
_this.smokePuff();
|
||||||
Entities.deleteEntity(otherID)
|
Entities.deleteEntity(otherID)
|
||||||
|
Messages.sendMessage('Entity-Exploded', JSON.stringify({
|
||||||
|
entityID: otherID,
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue