Overlay accepts multiple objects. Add Keyboard and controllers to the overlay. When clicking play menu is hidden and overlay removed from scene
This commit is contained in:
@@ -10,10 +10,11 @@
|
||||
bind__beat-loader="challengeId: challenge.id; difficulty: challenge.difficulty"
|
||||
bind__song="challengeId: challenge.id; isPlaying: !menu.active && !challenge.isLoading"
|
||||
bind__song-preview-system="selectedChallengeId: menuSelectedChallenge.id"
|
||||
bind-toggle__overlay="menu.active"
|
||||
console-shortcuts
|
||||
effect-bloom="strength: 0.7"
|
||||
proxy-event="event: menuchallengeselect; to: #searchResultsContainer, #menuDifficultiesGroup"
|
||||
overlay="object: #menu"
|
||||
overlay="object: #menu, #keyboard, #rightHand, #leftHand"
|
||||
search
|
||||
stage-colors="blue"
|
||||
fog="color: #a00; density: 0.035; type: exponential">
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
</a-entity>
|
||||
</a-entity>
|
||||
|
||||
<a-entity id="keyboard" super-keyboard="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 search bind__super-keyboard="show: search.active"></a-entity>
|
||||
<a-entity id="keyboard" super-keyboard="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 search bind__super-keyboard="show: menu.active"></a-entity>
|
||||
|
||||
<!-- Representation of the song information during play mode. Not part of menu.
|
||||
TODO: Move to different template along with score and such. -->
|
||||
|
||||
Reference in New Issue
Block a user