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:
parent
cbb303c21b
commit
69dc926eb6
4 changed files with 7 additions and 1 deletions
js
|
@ -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'}},
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue