From f86980bf492b5a5034746f78a8ba12fa9a2508dc Mon Sep 17 00:00:00 2001 From: "Diego F. Goberna" Date: Fri, 9 Nov 2018 00:46:38 +0100 Subject: [PATCH] added tutorial button on menu --- src/state/index.js | 5 +++++ src/templates/menu.html | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/state/index.js b/src/state/index.js index edcd88b..65f1162 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -374,6 +374,11 @@ AFRAME.registerState({ state.isSongLoading = true; }, + 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 5ea8bb4..803cbc6 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"> - + - + + + + +