1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 09:21:46 +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: # The Modding Tree changelog:
# v2.6.6 - 9/7/21
- Added option for shift-clicking nodes toggling their tooltips. - Added option for shift-clicking nodes toggling their tooltips.
- Fixed NaN check for setting Decimal values with text boxes. - Fixed NaN check for setting Decimal values with text boxes.
- Added display-image, h-line, and v-line to documentation. - Added display-image, h-line, and v-line to documentation.
- Fixed an issue with subtab glow colors. - Fixed an issue with subtab glow colors.
- Locked/hidden subtabs can't cause node glowing.
- Fixed being able to buy upgrades on deactivated layers. - Fixed being able to buy upgrades on deactivated layers.
- Updated break_eternity library. - Updated break_eternity library.
- Cleaned up buyable/clickable code. - Cleaned up buyable/clickable code.

View file

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

View file

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

View file

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