1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-12-04 13:51:31 +00:00

Fixed subtab glow issue

This commit is contained in:
Harley White 2021-07-07 13:15:03 -04:00
parent 5e9d4ea53e
commit 2968a838d6
3 changed files with 9 additions and 2 deletions

View file

@ -1,9 +1,12 @@
# The Modding Tree changelog: # The Modding Tree changelog:
# v2.6.5 - 7/7/21
- Fixed offline production. - Fixed offline production.
- Fixed formatting for small negative numbers. - Fixed formatting for small negative numbers.
- Fixed divide by zero when a 0-second tick occurs. - Fixed divide by zero when a 0-second tick occurs.
- "deactivated" now also affects achievement/milestone unlocking. - "deactivated" now also affects achievement/milestone unlocking.
- Locked challenges cannot be entered. - Locked challenges cannot be entered.
- Fixed a bug with subtab glow colors.
# v2.6.4.2 - 6/17/21 # v2.6.4.2 - 6/17/21
- Fixed a bug with the endgame screen. - Fixed a bug with the endgame screen.

View file

@ -94,7 +94,8 @@ function shouldNotify(layer){
if (isPlainObject(tmp[layer].tabFormat)) { if (isPlainObject(tmp[layer].tabFormat)) {
for (subtab in tmp[layer].tabFormat){ for (subtab in tmp[layer].tabFormat){
if (subtabShouldNotify(layer, 'mainTabs', subtab)) { if (subtabShouldNotify(layer, 'mainTabs', subtab)) {
tmp[layer].trueGlowColor = tmp[layer].tabFormat[subtab].glowColor tmp[layer].trueGlowColor = tmp[layer].tabFormat[subtab].glowColor || defaultGlow
return true return true
} }
} }

View file

@ -4,6 +4,9 @@ const decimalZero = new Decimal(0)
const decimalOne = new Decimal(1) const decimalOne = new Decimal(1)
const decimalNaN = new Decimal(NaN) const decimalNaN = new Decimal(NaN)
const defaultGlow = "#ff0000"
function layerShown(layer){ function layerShown(layer){
return tmp[layer].layerShown; 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].displayRow === undefined) layers[layer].displayRow = layers[layer].row
if(layers[layer].name === undefined) layers[layer].name = layer if(layers[layer].name === undefined) layers[layer].name = layer
if(layers[layer].layerShown === undefined) layers[layer].layerShown = true 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 let row = layers[layer].row