1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-01-18 03:31:30 +00:00

nodeStyle now does fonts

This commit is contained in:
Harley White 2021-09-09 17:42:44 -04:00
parent 43ad19764b
commit 66d7d5b4fb
5 changed files with 12 additions and 3 deletions

View file

@ -1,5 +1,8 @@
# The Modding Tree changelog: # The Modding Tree changelog:
# v2.6.6.2 = 9/9/21
- nodeStyle can now be used to set fonts.
# v2.6.6.1 = 9/8/21 # v2.6.6.1 = 9/8/21
- Fixed options not updating when new ones are added. - Fixed options not updating when new ones are added.

View file

@ -14,6 +14,11 @@
margin: 0 10px 0 10px; margin: 0 10px 0 10px;
} }
.nodeLabel {
font: inherit;
font-family: inherit;
}
.treeButton { .treeButton {
height: 100px; height: 100px;
width: 100px; width: 100px;

View file

@ -364,7 +364,8 @@ addLayer("c", {
}}, }},
nodeStyle() {return { // Style on the layer node nodeStyle() {return { // Style on the layer node
'color': '#3325CC', 'color': '#3325CC',
'text-decoration': 'underline' 'text-decoration': 'underline',
'font-family': 'cursive'
}}, }},
glowColor: "orange", // If the node is highlighted, it will be this color (default is red) glowColor: "orange", // If the node is highlighted, it will be this color (default is red)
componentStyles: { componentStyles: {

View file

@ -3,7 +3,7 @@ var needCanvasUpdate = true;
// Don't change this // Don't change this
const TMT_VERSION = { const TMT_VERSION = {
tmtNum: "2.6.6.1", tmtNum: "2.6.6.2",
tmtName: "Fixed Reality" tmtName: "Fixed Reality"
} }

View file

@ -47,7 +47,7 @@ var systemComponents = {
front: !tmp.scrolled, front: !tmp.scrolled,
}" }"
v-bind:style="constructNodeStyle(layer)"> v-bind:style="constructNodeStyle(layer)">
<span v-html="(abb !== '' && tmp[layer].image === undefined) ? abb : '&nbsp;'"></span> <span class="nodeLabel" v-html="(abb !== '' && tmp[layer].image === undefined) ? abb : '&nbsp;'"></span>
<tooltip <tooltip
v-if="tmp[layer].tooltip != ''" v-if="tmp[layer].tooltip != ''"
:text="(tmp[layer].isLayer) ? ( :text="(tmp[layer].isLayer) ? (