diff --git a/src/data/nodeTypes.tsx b/src/data/nodeTypes.tsx index 326caf1..dd6767a 100644 --- a/src/data/nodeTypes.tsx +++ b/src/data/nodeTypes.tsx @@ -286,7 +286,10 @@ export const resource = { 1 ) }), - draggable: true + draggable: true, + showStar: node => (node.state as unknown as ResourceState).type in main.toolNodes.value, + fillStar: node => + `${(node.state as unknown as ResourceState).type}Relic` in main.toolNodes.value } as NodeTypeOptions; export const passive = { diff --git a/src/features/boards/BoardNode.vue b/src/features/boards/BoardNode.vue index 629e1e8..26f5b0a 100644 --- a/src/features/boards/BoardNode.vue +++ b/src/features/boards/BoardNode.vue @@ -58,6 +58,14 @@ " :stroke="progressColor" /> + { const shape = computed(() => getNodeProperty(props.nodeType.value.shape, unref(props.node))); const title = computed(() => getNodeProperty(props.nodeType.value.title, unref(props.node))); -const subtitle = computed(() => getNodeProperty(props.nodeType.value.subtitle, unref(props.node))); const otherSubtitle = computed(() => getNodeProperty(props.nodeType.value.otherSubtitle, unref(props.node)) ); @@ -286,6 +293,10 @@ function mouseUp(e: MouseEvent | TouchEvent) { e.stopPropagation(); } } + +const subtitle = computed(() => getNodeProperty(props.nodeType.value.subtitle, unref(props.node))); +const showStar = computed(() => getNodeProperty(props.nodeType.value.showStar, unref(props.node))); +const fillStar = computed(() => getNodeProperty(props.nodeType.value.fillStar, unref(props.node)));