1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00

Layer node symbols can use HTML

This commit is contained in:
Harley White 2021-04-27 01:38:52 -04:00
parent 60dcf108b7
commit b003027098
2 changed files with 4 additions and 3 deletions

View file

@ -1,8 +1,9 @@
# The Modding Tree changelog: # The Modding Tree changelog:
- Completely reworked tooltips. Shift-click a node to force its tooltip to stay displayed. (And hopefully finally fixed flickering!) - Completely reworked tooltips. Shift-click a node to force its tooltip to stay displayed. (And hopefully finally fixed flickering!)
- Added 2 new input components, text-input and slider. - Added text-input and slider components.
- The red layer highlight will not appear before a layer is unlocked. - The red layer highlight will not appear before a layer is unlocked.
- Node symbols can use HTML.
# v2.π.1 - 4/7/21 # v2.π.1 - 4/7/21
- Fixed formatting for some larger numbers. - Fixed formatting for some larger numbers.

View file

@ -37,8 +37,8 @@ var systemComponents = {
resetNotify: tmp[layer].prestigeNotify, resetNotify: tmp[layer].prestigeNotify,
can: ((player[layer].unlocked || tmp[layer].isLayer) && tmp[layer].isLayer) || (!tmp[layer].isLayer && tmp[layer].canClick), can: ((player[layer].unlocked || tmp[layer].isLayer) && tmp[layer].isLayer) || (!tmp[layer].isLayer && tmp[layer].canClick),
}" }"
v-bind:style="tmp[layer].computedNodeStyle"> v-bind:style="tmp[layer].computedNodeStyle"
{{(abb !== '' && tmp[layer].image === undefined) ? abb : ' '}} v-html="(abb !== '' && tmp[layer].image === undefined) ? abb : ' '">
<tooltip <tooltip
v-bind:text="(tmp[layer].tooltip == '') ? false : (tmp[layer].isLayer) ? ( v-bind:text="(tmp[layer].tooltip == '') ? false : (tmp[layer].isLayer) ? (
player[layer].unlocked ? (tmp[layer].tooltip ? tmp[layer].tooltip : formatWhole(player[layer].points) + ' ' + tmp[layer].resource) player[layer].unlocked ? (tmp[layer].tooltip ? tmp[layer].tooltip : formatWhole(player[layer].points) + ' ' + tmp[layer].resource)