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:
parent
43ad19764b
commit
66d7d5b4fb
5 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
# 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
|
||||
- Fixed options not updating when new ones are added.
|
||||
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
margin: 0 10px 0 10px;
|
||||
}
|
||||
|
||||
.nodeLabel {
|
||||
font: inherit;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.treeButton {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
|
|
|
@ -364,7 +364,8 @@ addLayer("c", {
|
|||
}},
|
||||
nodeStyle() {return { // Style on the layer node
|
||||
'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)
|
||||
componentStyles: {
|
||||
|
|
|
@ -3,7 +3,7 @@ var needCanvasUpdate = true;
|
|||
|
||||
// Don't change this
|
||||
const TMT_VERSION = {
|
||||
tmtNum: "2.6.6.1",
|
||||
tmtNum: "2.6.6.2",
|
||||
tmtName: "Fixed Reality"
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ var systemComponents = {
|
|||
front: !tmp.scrolled,
|
||||
}"
|
||||
v-bind:style="constructNodeStyle(layer)">
|
||||
<span v-html="(abb !== '' && tmp[layer].image === undefined) ? abb : ' '"></span>
|
||||
<span class="nodeLabel" v-html="(abb !== '' && tmp[layer].image === undefined) ? abb : ' '"></span>
|
||||
<tooltip
|
||||
v-if="tmp[layer].tooltip != ''"
|
||||
:text="(tmp[layer].isLayer) ? (
|
||||
|
|
Loading…
Add table
Reference in a new issue