From a354aa2b2795524d20c75e868bff630bdf4b39a9 Mon Sep 17 00:00:00 2001 From: Robert Long <robert@robertlong.me> Date: Mon, 30 Oct 2017 15:58:30 -0700 Subject: [PATCH] hand-controls-child-visibility -> hand-controls-visibility and no explicit visible component --- public/index.html | 4 ++-- ...ntrols-child-visibility.js => hand-controls-visibility.js} | 2 +- src/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/components/{hand-controls-child-visibility.js => hand-controls-visibility.js} (90%) diff --git a/public/index.html b/public/index.html index 3b58ef6ce..d2d284960 100644 --- a/public/index.html +++ b/public/index.html @@ -58,7 +58,7 @@ <a-entity id="nametag" networked="template:#nametag-template;showLocalTemplate:false;"></a-entity> - <a-entity id="left-hand" hand-controls="left" visible="false" hand-controls-child-visibility axis-dpad="centerZone: 1" teleport-controls="cameraRig: #player-rig; teleportOrigin: #head; button: action_teleport_" + <a-entity id="left-hand" hand-controls="left" hand-controls-visibility axis-dpad="centerZone: 1" teleport-controls="cameraRig: #player-rig; teleportOrigin: #head; button: action_teleport_" networked="template:#hand-template;showLocalTemplate:false;"> <a-entity id="watch" gltf-model="assets/hud/watch.gltf" position="0 0.0015 0.147" rotation="3.5 0 0"> <a-circle mute-state-indicator scale-audio-feedback="analyserSrc: #head; minScale: 0.035; maxScale: 0.08;" position="0 0.023 0" @@ -67,7 +67,7 @@ </a-entity> </a-entity> - <a-entity id="right-hand" hand-controls="right" visible="false" hand-controls-child-visibility axis-dpad teleport-controls="cameraRig: #player-rig; teleportOrigin: #head; hitEntity: #telepor-indicator; button: action_teleport_;" + <a-entity id="right-hand" hand-controls="right" hand-controls-child-visibility axis-dpad teleport-controls="cameraRig: #player-rig; teleportOrigin: #head; hitEntity: #telepor-indicator; button: action_teleport_;" networked="template:#hand-template;showLocalTemplate:false;"></a-entity> </a-entity> diff --git a/src/components/hand-controls-child-visibility.js b/src/components/hand-controls-visibility.js similarity index 90% rename from src/components/hand-controls-child-visibility.js rename to src/components/hand-controls-visibility.js index 75b79bb21..50d751489 100644 --- a/src/components/hand-controls-child-visibility.js +++ b/src/components/hand-controls-visibility.js @@ -1,4 +1,4 @@ -AFRAME.registerComponent("hand-controls-child-visibility", { +AFRAME.registerComponent("hand-controls-visibility", { init() { this.onControllerConnected = this.onControllerConnected.bind(this); this.onControllerDisconnected = this.onControllerDisconnected.bind(this); diff --git a/src/index.js b/src/index.js index d230f3e3e..690a9e69e 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,7 @@ import "./components/audio-feedback"; import "./components/nametag-transform"; import "./components/avatar-customization"; import "./components/mute-state-indicator"; -import "./components/hand-controls-child-visibility"; +import "./components/hand-controls-visibility"; import { generateName } from "./utils"; -- GitLab