From 78ac7957dd206f70ae7cd62946ca0e7f84a182e3 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 7 Jul 2022 10:40:33 -0500 Subject: [PATCH] Improved how MainDisplay displayed effect strings --- src/features/resources/MainDisplay.vue | 29 +++++++++++++++++--------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/src/features/resources/MainDisplay.vue b/src/features/resources/MainDisplay.vue index 18d8164..f0051cf 100644 --- a/src/features/resources/MainDisplay.vue +++ b/src/features/resources/MainDisplay.vue @@ -1,11 +1,18 @@ @@ -17,7 +24,7 @@ import type { Resource } from "features/resources/resource"; import ResourceVue from "features/resources/Resource.vue"; import Decimal from "util/bignum"; import { computeOptionalComponent } from "util/vue"; -import type { Ref, StyleValue } from "vue"; +import { ComponentPublicInstance, ref, Ref, StyleValue } from "vue"; import { computed, toRefs } from "vue"; const _props = defineProps<{ @@ -29,6 +36,8 @@ const _props = defineProps<{ }>(); const props = toRefs(_props); +const effectRef = ref(null); + const effectComponent = computeOptionalComponent( props.effectDisplay as Ref ); @@ -39,9 +48,9 @@ const showPrefix = computed(() => {