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:
parent
b602605bda
commit
f31e345f2f
4 changed files with 10 additions and 8 deletions
|
@ -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.
|
||||
|
|
|
@ -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",
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
12
js/utils.js
12
js/utils.js
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue