mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
Fixed microtabs always highlighting a layer
This commit is contained in:
parent
46c8b2d1c7
commit
e007589bec
3 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
||||||
# The Modding Tree changelog:
|
# The Modding Tree changelog:
|
||||||
|
|
||||||
|
# v2.5.2.1 - 5/7/21
|
||||||
|
- Fixed microtabs making layers highlight incorrectly.
|
||||||
|
|
||||||
# v2.5.2 - 5/7/21
|
# v2.5.2 - 5/7/21
|
||||||
- Added glowColor for subtabs.
|
- Added glowColor for subtabs.
|
||||||
- Improved the display for extremely small numbers.
|
- Improved the display for extremely small numbers.
|
||||||
|
|
|
@ -11,7 +11,7 @@ let modInfo = {
|
||||||
|
|
||||||
// Set your version in num and name
|
// Set your version in num and name
|
||||||
let VERSION = {
|
let VERSION = {
|
||||||
num: "2.5.1",
|
num: "2.5.2.1",
|
||||||
name: "Dreams Really Do Come True",
|
name: "Dreams Really Do Come True",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ var scrolled = false;
|
||||||
|
|
||||||
// Don't change this
|
// Don't change this
|
||||||
const TMT_VERSION = {
|
const TMT_VERSION = {
|
||||||
tmtNum: "2.5.1",
|
tmtNum: "2.5.2.1",
|
||||||
tmtName: "Dreams Really Do Come True"
|
tmtName: "Dreams Really Do Come True"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,9 +102,10 @@ function shouldNotify(layer){
|
||||||
|
|
||||||
for (family in tmp[layer].microtabs) {
|
for (family in tmp[layer].microtabs) {
|
||||||
for (subtab in tmp[layer].microtabs[family]){
|
for (subtab in tmp[layer].microtabs[family]){
|
||||||
if (subtabShouldNotify(layer, family, subtab))
|
if (subtabShouldNotify(layer, family, subtab)) {
|
||||||
tmp[layer].trueGlowColor = tmp[layer].microtabs[family][subtab].glowColor
|
tmp[layer].trueGlowColor = tmp[layer].microtabs[family][subtab].glowColor
|
||||||
return true
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue