From 8212888de0b2bad22d7fe246fb09d62bbd790ecb Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Wed, 3 Oct 2018 18:06:03 -0700 Subject: [PATCH] hook up pause menu to event, use mixins for pause menu --- src/state/index.js | 2 +- src/templates/dialogs.html | 46 ++++++++++++++++++++------------------ 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/src/state/index.js b/src/state/index.js index da8a24c..9b77386 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -110,7 +110,7 @@ AFRAME.registerState({ }, pausegame: (state) => { - state.menu.active = true; + state.isPaused = true; }, /** diff --git a/src/templates/dialogs.html b/src/templates/dialogs.html index 7d8a05f..cc36e4d 100644 --- a/src/templates/dialogs.html +++ b/src/templates/dialogs.html @@ -1,25 +1,27 @@ + + + + - - - - - - + + + - - - + + + - \ No newline at end of file + + + +