mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-12-03 13:21:34 +00:00
Fixed subtab glow issue
This commit is contained in:
parent
5e9d4ea53e
commit
2968a838d6
3 changed files with 9 additions and 2 deletions
|
@ -1,9 +1,12 @@
|
|||
# The Modding Tree changelog:
|
||||
|
||||
# v2.6.5 - 7/7/21
|
||||
- Fixed offline production.
|
||||
- Fixed formatting for small negative numbers.
|
||||
- Fixed divide by zero when a 0-second tick occurs.
|
||||
- "deactivated" now also affects achievement/milestone unlocking.
|
||||
- Locked challenges cannot be entered.
|
||||
- Fixed a bug with subtab glow colors.
|
||||
|
||||
# v2.6.4.2 - 6/17/21
|
||||
- Fixed a bug with the endgame screen.
|
||||
|
|
|
@ -94,7 +94,8 @@ function shouldNotify(layer){
|
|||
if (isPlainObject(tmp[layer].tabFormat)) {
|
||||
for (subtab in tmp[layer].tabFormat){
|
||||
if (subtabShouldNotify(layer, 'mainTabs', subtab)) {
|
||||
tmp[layer].trueGlowColor = tmp[layer].tabFormat[subtab].glowColor
|
||||
tmp[layer].trueGlowColor = tmp[layer].tabFormat[subtab].glowColor || defaultGlow
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,9 @@ const decimalZero = new Decimal(0)
|
|||
const decimalOne = new Decimal(1)
|
||||
const decimalNaN = new Decimal(NaN)
|
||||
|
||||
const defaultGlow = "#ff0000"
|
||||
|
||||
|
||||
function layerShown(layer){
|
||||
return tmp[layer].layerShown;
|
||||
}
|
||||
|
@ -187,7 +190,7 @@ function setupLayer(layer){
|
|||
if(layers[layer].displayRow === undefined) layers[layer].displayRow = layers[layer].row
|
||||
if(layers[layer].name === undefined) layers[layer].name = layer
|
||||
if(layers[layer].layerShown === undefined) layers[layer].layerShown = true
|
||||
if(layers[layer].glowColor === undefined) layers[layer].glowColor = "#ff0000"
|
||||
if(layers[layer].glowColor === undefined) layers[layer].glowColor = defaultGlow
|
||||
|
||||
let row = layers[layer].row
|
||||
|
||||
|
|
Loading…
Reference in a new issue