From a568510f4352bb35d3446d63ee79847d6b1713fb Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Fri, 7 Jul 2023 13:49:31 +0200 Subject: [PATCH] Progress on Tabletop CRPG-style design --- .../client/ui/tabletop/TabletopActionCard.vue | 1 - .../client/ui/tabletop/TabletopComponent.vue | 48 ++---- .../selectedCreatureBar/CreatureBarIcon.vue | 47 ++++++ .../SelectedCreatureBar.vue | 156 ++++++++++++------ app/package-lock.json | 2 +- 5 files changed, 172 insertions(+), 82 deletions(-) create mode 100644 app/imports/client/ui/tabletop/selectedCreatureBar/CreatureBarIcon.vue diff --git a/app/imports/client/ui/tabletop/TabletopActionCard.vue b/app/imports/client/ui/tabletop/TabletopActionCard.vue index 92b6e0bd..bb405a40 100644 --- a/app/imports/client/ui/tabletop/TabletopActionCard.vue +++ b/app/imports/client/ui/tabletop/TabletopActionCard.vue @@ -241,7 +241,6 @@ export default { return undefined; } }, - // @ts-ignore meteor: { children() { const indicesOfTerminatingProps = []; diff --git a/app/imports/client/ui/tabletop/TabletopComponent.vue b/app/imports/client/ui/tabletop/TabletopComponent.vue index 1e9bbf0a..6483901c 100644 --- a/app/imports/client/ui/tabletop/TabletopComponent.vue +++ b/app/imports/client/ui/tabletop/TabletopComponent.vue @@ -72,37 +72,23 @@ - - - - - - + + + @@ -117,6 +103,7 @@ import { snackbar } from '/imports/client/ui/components/snackbars/SnackbarQueue. import CreatureProperties from '/imports/api/creature/creatureProperties/CreatureProperties.js'; import { assertEditPermission } from '/imports/api/creature/creatures/creaturePermissions.js'; import ActionCard from '/imports/client/ui/tabletop/TabletopActionCard.vue'; +import SelectedCreatureBar from '/imports/client/ui/tabletop/selectedCreatureBar/SelectedCreatureBar.vue'; const getProperties = function (creatureId, selector = {}) { return CreatureProperties.find({ @@ -142,6 +129,7 @@ export default { TabletopMap, ActionCard, MiniCharacterSheet, + SelectedCreatureBar, }, props: { model: { diff --git a/app/imports/client/ui/tabletop/selectedCreatureBar/CreatureBarIcon.vue b/app/imports/client/ui/tabletop/selectedCreatureBar/CreatureBarIcon.vue new file mode 100644 index 00000000..37688f27 --- /dev/null +++ b/app/imports/client/ui/tabletop/selectedCreatureBar/CreatureBarIcon.vue @@ -0,0 +1,47 @@ + + + diff --git a/app/imports/client/ui/tabletop/selectedCreatureBar/SelectedCreatureBar.vue b/app/imports/client/ui/tabletop/selectedCreatureBar/SelectedCreatureBar.vue index 72cc1aee..c6030e1f 100644 --- a/app/imports/client/ui/tabletop/selectedCreatureBar/SelectedCreatureBar.vue +++ b/app/imports/client/ui/tabletop/selectedCreatureBar/SelectedCreatureBar.vue @@ -1,8 +1,10 @@ \ No newline at end of file diff --git a/app/package-lock.json b/app/package-lock.json index 74139826..98d308f6 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1917,7 +1917,7 @@ "lodash.omit": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", - "integrity": "sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA=" + "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==" }, "lodash.template": { "version": "4.5.0",