From d6be0ae9f4baeac78e5381089e30300a428e94c2 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Mon, 18 Oct 2021 13:46:51 +0200 Subject: [PATCH] Continued work on UI viewers --- app/imports/constants/PROPERTIES.js | 6 --- .../migrations/server/2.0-beta.33-dbv1.js | 1 + .../CreaturePropertyDialog.vue | 19 +++++-- .../treeNodeViews/AdjustmentTreeNode.vue | 18 +++++-- .../ui/properties/viewers/ActionViewer.vue | 9 ++++ .../properties/viewers/AdjustmentViewer.vue | 54 +++++++++---------- .../ui/properties/viewers/AttributeViewer.vue | 3 +- .../ui/properties/viewers/BuffViewer.vue | 17 ++++-- .../ui/properties/viewers/SkillViewer.vue | 16 +++++- .../viewers/shared/PropertyDescription.vue | 2 +- .../viewers/shared/PropertyField.vue | 15 +++++- 11 files changed, 107 insertions(+), 53 deletions(-) diff --git a/app/imports/constants/PROPERTIES.js b/app/imports/constants/PROPERTIES.js index 5704ada9..18237814 100644 --- a/app/imports/constants/PROPERTIES.js +++ b/app/imports/constants/PROPERTIES.js @@ -5,12 +5,6 @@ const PROPERTIES = Object.freeze({ helpText: 'Actions are things your character can do. When an action is taken, all the properties under it are activated.', suggestedParents: ['classLevel', 'feature', 'item'], }, - attack: { - icon: '$vuetify.icons.attack', - name: 'Attack', - helpText: 'Attacks are a special form of action that includes an attack roll. Attacks can critical hit, which doubles the number of damage dice in properties under the attack.', - suggestedParents: ['classLevel', 'feature', 'item'], - }, attribute: { icon: '$vuetify.icons.attribute', name: 'Attribute', diff --git a/app/imports/migrations/server/2.0-beta.33-dbv1.js b/app/imports/migrations/server/2.0-beta.33-dbv1.js index 2d7fddb5..5291e2a1 100644 --- a/app/imports/migrations/server/2.0-beta.33-dbv1.js +++ b/app/imports/migrations/server/2.0-beta.33-dbv1.js @@ -93,6 +93,7 @@ const transformsByPropType = { ...getInlineComputationTransforms('description'), {from: 'value', to: 'total', up: nanToNull}, {from: 'target', to: 'target', up: simplifyTarget}, + {from: 'applied'}, ], 'classLevel': [ ...getInlineComputationTransforms('description'), diff --git a/app/imports/ui/creature/creatureProperties/CreaturePropertyDialog.vue b/app/imports/ui/creature/creatureProperties/CreaturePropertyDialog.vue index f3dfc0b4..67c647fa 100644 --- a/app/imports/ui/creature/creatureProperties/CreaturePropertyDialog.vue +++ b/app/imports/ui/creature/creatureProperties/CreaturePropertyDialog.vue @@ -14,9 +14,18 @@ /> diff --git a/app/imports/ui/properties/viewers/ActionViewer.vue b/app/imports/ui/properties/viewers/ActionViewer.vue index 57d64481..89c72e80 100644 --- a/app/imports/ui/properties/viewers/ActionViewer.vue +++ b/app/imports/ui/properties/viewers/ActionViewer.vue @@ -34,6 +34,10 @@ name="Action type" :value="actionTypes[model.actionType]" /> + - - - - - {{ tooltip }} - - - - {{ displayedValue }} - - - - {{ model.stat }} - - - - + {{ effectIcon }} + + {{ displayedValue }} + + + + +