Showing the changes to tutorial/tutorialZone.js (1 of 15 files). Show all
Unified · Split
| @@ -27,8 +27,10 @@ if (!Function.prototype.bind) { · 26 unmodified lines | ||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | (function() { |
| 30 | − Script.include("ownershipToken.js"); | |
| 31 | − Script.include("tutorial.js"); | |
| 30 | + var ownershipTokenPath = Script.resolvePath("ownershipToken.js"); | |
| 31 | + var tutorialPath = Script.resolvePath("tutorial.js"); | |
| 32 | + Script.include(ownershipTokenPath); | |
| 33 | + Script.include(tutorialPath); | |
| 32 | 34 | |
| 33 | 35 | var TutorialZone = function() { |
| 34 | 36 | this.token = null; |
| @@ -37,17 +39,19 @@ if (!Function.prototype.bind) { · 2 unmodified lines | ||
| 37 | 39 | TutorialZone.prototype = { |
| 38 | 40 | keyReleaseHandler: function(event) { |
| 39 | 41 | print(event.text); |
| 40 | − if (event.text == ",") { | |
| 41 | − if (!this.tutorialManager.startNextStep()) { | |
| 42 | + if (event.isShifted && event.isAlt) { | |
| 43 | + if (event.text == ",") { | |
| 44 | + if (!this.tutorialManager.startNextStep()) { | |
| 45 | + this.tutorialManager.startTutorial(); | |
| 46 | + } | |
| 47 | + } else if (event.text == "F11") { | |
| 48 | + this.tutorialManager.restartStep(); | |
| 49 | + } else if (event.text == "F10") { | |
| 50 | + MyAvatar.shouldRenderLocally = !MyAvatar.shouldRenderLocally; | |
| 51 | + } else if (event.text == "r") { | |
| 52 | + this.tutorialManager.stopTutorial(); | |
| 42 | 53 | this.tutorialManager.startTutorial(); |
| 43 | 54 | } |
| 44 | − } else if (event.text == "F11") { | |
| 45 | − this.tutorialManager.restartStep(); | |
| 46 | − } else if (event.text == "F10") { | |
| 47 | − MyAvatar.shouldRenderLocally = !MyAvatar.shouldRenderLocally; | |
| 48 | − } else if (event.text == "r") { | |
| 49 | − this.tutorialManager.stopTutorial(); | |
| 50 | − this.tutorialManager.startTutorial(); | |
| 51 | 55 | } |
| 52 | 56 | }, |
| 53 | 57 | preload: function(entityID) { |