From 2349dd90c7d27d88e442442eb496563ca0fe8b30 Mon Sep 17 00:00:00 2001 From: "Diego F. Goberna" Date: Fri, 16 Nov 2018 18:48:52 +0100 Subject: [PATCH] tutorial on side --- src/state/index.js | 13 +------------ src/templates/menu.html | 14 ++------------ src/templates/tutorial.html | 18 ++++++------------ 3 files changed, 9 insertions(+), 36 deletions(-) diff --git a/src/state/index.js b/src/state/index.js index 9f2adce..e1bfbce 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -97,8 +97,7 @@ AFRAME.registerState({ songNameTexts: '', // All names in search results merged together. songSubNameTexts: '' // All sub names in search results merged together. }, - searchResultsPage: [], - tutorialActive: false + searchResultsPage: [] }, handlers: { @@ -382,16 +381,6 @@ AFRAME.registerState({ state.isSongLoading = true; }, - tutorialclose: (state) => { - state.menuActive = true; - state.tutorialActive = false; - }, - - tutorialopen: (state) => { - state.menuActive = false; - state.tutorialActive = true; - }, - 'enter-vr': (state) => { state.inVR = true; }, diff --git a/src/templates/menu.html b/src/templates/menu.html index 7037280..2380e66 100644 --- a/src/templates/menu.html +++ b/src/templates/menu.html @@ -309,7 +309,7 @@ proxy-event__accept="event: superkeyboardinput; to: a-scene; as: keyboardclose"> - + - + - - - - diff --git a/src/templates/tutorial.html b/src/templates/tutorial.html index 20e848b..7c5d757 100644 --- a/src/templates/tutorial.html +++ b/src/templates/tutorial.html @@ -1,9 +1,10 @@ + bind__visible="menuActive"> @@ -25,9 +26,10 @@ + bind__visible="menuActive"> - - - -