1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-14 05:41:09 +00:00

Added glowColor

This commit is contained in:
Harley White 2021-05-06 16:00:47 -04:00
parent cbb303c21b
commit 69dc926eb6
4 changed files with 7 additions and 1 deletions

View file

@ -355,6 +355,7 @@ addLayer("c", {
'color': '#3325CC',
'text-decoration': 'underline'
}},
glowColor: "orange", // If the node is highlighted, it will be this color (default is red)
componentStyles: {
"challenge"() {return {'height': '200px'}},
"prestige-button"() {return {'color': '#AA66AA'}},

View file

@ -18,6 +18,8 @@ function constructNodeStyle(layer){
style.push({'background-color': tmp[layer].color})
if (tmp[layer].image !== undefined)
style.push({'background-image': 'url("' + tmp[layer].image + '")'})
if(tmp[layer].glowColor !== undefined && tmp[layer].notify && player[layer].unlocked)
style.push({'box-shadow': 'var(--hqProperty2a), 0 0 20px ' + tmp[layer].glowColor})
style.push(tmp[layer].nodeStyle)
return style
}