tweak search copy

This commit is contained in:
Kevin Ngo
2018-10-03 19:03:40 -07:00
parent 1b09de3597
commit 29c908b64c
2 changed files with 3 additions and 4 deletions

View File

@@ -2,8 +2,7 @@ AFRAME.registerComponent('keyboard-raycastable', {
dependencies: ['super-keyboard'],
play: function () {
// TODO: bind-toggle__raycastable for when search is activated.
this.el.components['super-keyboard'].kbImg.setAttribute('bind-toggle__raycastable',
'showKeyboard');
'keyboardActive');
},
});

View File

@@ -197,14 +197,14 @@
bind-toggle__raycastable="menu.active && !keyboardActive"
bind__visible="menu.active && !keyboardActive"
proxy-event="event: click; to: a-scene; as: keyboardopen">
<a-entity mixin="textFont" text="align: center; color: #AAA; wrapCount: 20; value:SEARCH SONG" position="0 -0.07 0.01"></a-entity>
<a-entity mixin="textFont" text="align: center; color: #AAA; wrapCount: 20; value: SEARCH SONGS" position="0 -0.07 0.01"></a-entity>
</a-entity>
<a-entity
id="keyboard"
bind__super-keyboard="show: keyboardActive"
super-keyboard="label: Search song name or author:; width: 1; hand: {{ DEBUG_KEYBOARD and '#mouseCursor' or '#rightHand' }}; imagePath: assets/img/keyboard/; injectToRaycasterObjects: false"
super-keyboard="label: Search from over 2500 songs!; width: 1; hand: {{ DEBUG_KEYBOARD and '#mouseCursor' or '#rightHand' }}; imagePath: assets/img/keyboard/; injectToRaycasterObjects: false"
position="0 0.8 -1"
rotation="-40 0 0"
keyboard-raycastable