diff --git a/assets/img/slicebtn.png b/assets/img/slicebtn.png
new file mode 100644
index 0000000..311a01b
Binary files /dev/null and b/assets/img/slicebtn.png differ
diff --git a/src/components/keyboard-raycastable.js b/src/components/keyboard-raycastable.js
index dbb9d15..5e9a7d3 100644
--- a/src/components/keyboard-raycastable.js
+++ b/src/components/keyboard-raycastable.js
@@ -4,6 +4,6 @@ AFRAME.registerComponent('keyboard-raycastable', {
play: function () {
// TODO: bind-toggle__raycastable for when search is activated.
this.el.components['super-keyboard'].kbImg.setAttribute('bind-toggle__raycastable',
- 'menu.active');
+ 'showKeyboard');
},
});
diff --git a/src/index.html b/src/index.html
index d5db62f..5bb7b38 100644
--- a/src/index.html
+++ b/src/index.html
@@ -49,6 +49,7 @@
+
diff --git a/src/state/index.js b/src/state/index.js
index 9b77386..a5fdb86 100644
--- a/src/state/index.js
+++ b/src/state/index.js
@@ -28,6 +28,7 @@ AFRAME.registerState({
},
inVR: false,
isPaused: false,
+ showKeyboard: false,
menu: {
active: true,
playButtonText: 'Play'
@@ -84,6 +85,10 @@ AFRAME.registerState({
state.challenge.isLoading = true;
},
+ closekeyboard: (state) => {
+ state.showKeyboard = false;
+ },
+
/**
* Song clicked from menu.
*/
@@ -109,6 +114,10 @@ AFRAME.registerState({
state.menuSelectedChallenge.difficulty = difficulty;
},
+ openkeyboard: (state) => {
+ state.showKeyboard = true;
+ },
+
pausegame: (state) => {
state.isPaused = true;
},
diff --git a/src/templates/menu.html b/src/templates/menu.html
index cee357f..715fbfb 100644
--- a/src/templates/menu.html
+++ b/src/templates/menu.html
@@ -185,9 +185,26 @@
bind-toggle__raycastable="menu.active && !!menuSelectedChallenge.id"
bind__visible="menu.active && !!menuSelectedChallenge.id">
+
-
+
+
+
+
+
+