From ca1c1113b21068f71a27966b8fcd3ea3a9f1a530 Mon Sep 17 00:00:00 2001 From: Steffen Date: Wed, 27 May 2020 21:42:09 +0200 Subject: [PATCH] added character reference modal --- src/App.vue | 9 +- src/components/Menu.vue | 16 +- src/components/modals/Modal.vue | 5 + src/components/modals/ReferenceModal.vue | 212 +++++++++++++++++++++++ src/store/index.js | 7 + 5 files changed, 241 insertions(+), 8 deletions(-) create mode 100644 src/components/modals/ReferenceModal.vue diff --git a/src/App.vue b/src/App.vue index 730bcd0..c16020f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,8 +14,9 @@ - - + + + @@ -27,9 +28,11 @@ import Menu from "./components/Menu"; import RolesModal from "./components/modals/RolesModal"; import EditionModal from "./components/modals/EditionModal"; import Intro from "./components/Intro"; +import ReferenceModal from "./components/modals/ReferenceModal"; export default { components: { + ReferenceModal, Intro, TownInfo, TownSquare, @@ -54,7 +57,7 @@ export default { this.$refs.menu.addPlayer(); break; case "r": - this.$refs.menu.randomizeSeatings(); + this.$store.commit("toggleModal", "reference"); break; case "e": if (this.session.isSpectator) return; diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 8359002..17a81b2 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -86,12 +86,18 @@
  • Remove all
  • + - -
  • - - Characters -
  • + +
  • + + Characters +
  • +
  • + [R] + Reference Sheet +
  • +