1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 08:12:39 +00:00

Locked subtabs don't cause notify

This commit is contained in:
Harley White 2021-09-08 00:01:24 -04:00
parent b602605bda
commit f31e345f2f
4 changed files with 10 additions and 8 deletions

View file

@ -1,9 +1,11 @@
# The Modding Tree changelog:
# v2.6.6 - 9/7/21
- Added option for shift-clicking nodes toggling their tooltips.
- Fixed NaN check for setting Decimal values with text boxes.
- Added display-image, h-line, and v-line to documentation.
- Fixed an issue with subtab glow colors.
- Locked/hidden subtabs can't cause node glowing.
- Fixed being able to buy upgrades on deactivated layers.
- Updated break_eternity library.
- Cleaned up buyable/clickable code.

View file

@ -13,7 +13,7 @@ let modInfo = {
// Set your version in num and name
let VERSION = {
num: "2.6.5.1",
num: "2.6.6",
name: "Fixed Reality",
}

View file

@ -3,7 +3,7 @@ var needCanvasUpdate = true;
// Don't change this
const TMT_VERSION = {
tmtNum: "2.6.5.1",
tmtNum: "2.6.6",
tmtName: "Fixed Reality"
}

View file

@ -219,12 +219,12 @@ function notifyLayer(name) {
}
function subtabShouldNotify(layer, family, id) {
let subtab = {}
if (family == "mainTabs") subtab = tmp[layer].tabFormat[id]
else subtab = tmp[layer].microtabs[family][id]
if (subtab.embedLayer) return tmp[subtab.embedLayer].notify
else return subtab.shouldNotify
let subtab = {}
if (family == "mainTabs") subtab = tmp[layer].tabFormat[id]
else subtab = tmp[layer].microtabs[family][id]
if (!subtab.unlocked) return false
if (subtab.embedLayer) return tmp[subtab.embedLayer].notify
else return subtab.shouldNotify
}
function subtabResetNotify(layer, family, id) {