From b161151424bd17effdf8e410794b24bfce0b8685 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 23 Apr 2022 22:23:46 -0500 Subject: [PATCH] Add tooltip to example layer --- src/data/layers/prestige.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/data/layers/prestige.tsx b/src/data/layers/prestige.tsx index 12f2da3..2cd901a 100644 --- a/src/data/layers/prestige.tsx +++ b/src/data/layers/prestige.tsx @@ -8,6 +8,8 @@ import { jsx } from "features/feature"; import { createReset } from "features/reset"; import MainDisplay from "features/resources/MainDisplay.vue"; import { createResource } from "features/resources/resource"; +import { addTooltip } from "features/tooltips/tooltip"; +import { createResourceTooltip } from "features/trees/tree"; import { createLayer } from "game/layers"; import { DecimalSource } from "util/bignum"; import { render } from "util/vue"; @@ -35,6 +37,10 @@ const layer = createLayer(id, () => { color, reset })); + addTooltip(treeNode, { + display: createResourceTooltip(points), + pinnable: true + }); const resetButton = createResetButton(() => ({ conversion,