History

Add support to tutorial for touch grip equip

Ryan Huffman committed 9 years ago

Commit efb3e571 parent 0b2f60f2 files · +21 −12Browse files

Showing the changes to tutorial/tutorial.js (1 of 2 files). Show all

Unified · Split

tutorial/tutorial.js+5−4
@@ -535,11 +535,12 @@ stepNearGrab.prototype = { · 534 unmodified lines
535535 this.finished = false;
536536 this.onFinish = onFinish;
537537
538− setControllerPartLayer('tips', 'trigger');
539−
540538 if (this.controllerName === CONTROLLER_TOUCH) {
541− setControllerPartLayer('both_triggers', 'highlight');
539+ setControllerPartLayer('tips', 'both_triggers');
540+ setControllerPartLayer('trigger', 'highlight');
541+ setControllerPartLayer('grip', 'highlight');
542542 } else {
543+ setControllerPartLayer('tips', 'trigger');
543544 setControllerPartLayer('trigger', 'highlight');
544545 }
545546
@@ -581,8 +582,8 @@ stepNearGrab.prototype = { · 35 unmodified lines
581582 debug("NearGrab | Cleanup");
582583 this.finished = true;
583584 setControllerPartLayer('tips', 'blank');
584− setControllerPartLayer('both_triggers', 'normal');
585585 setControllerPartLayer('trigger', 'normal');
586+ setControllerPartLayer('grip', 'normal');
586587 hideEntitiesWithTags(this.tags);
587588 deleteEntitiesWithTag(this.tempTag);
588589 if (this.positionWatcher) {