Skip to content

Commit f31e345

Browse files
committed
Locked subtabs don't cause notify
1 parent b602605 commit f31e345

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# The Modding Tree changelog:
22

3+
# v2.6.6 - 9/7/21
34
- Added option for shift-clicking nodes toggling their tooltips.
45
- Fixed NaN check for setting Decimal values with text boxes.
56
- Added display-image, h-line, and v-line to documentation.
67
- Fixed an issue with subtab glow colors.
8+
- Locked/hidden subtabs can't cause node glowing.
79
- Fixed being able to buy upgrades on deactivated layers.
810
- Updated break_eternity library.
911
- Cleaned up buyable/clickable code.

js/Demo/demoMod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let modInfo = {
1313

1414
// Set your version in num and name
1515
let VERSION = {
16-
num: "2.6.5.1",
16+
num: "2.6.6",
1717
name: "Fixed Reality",
1818
}
1919

js/game.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var needCanvasUpdate = true;
33

44
// Don't change this
55
const TMT_VERSION = {
6-
tmtNum: "2.6.5.1",
6+
tmtNum: "2.6.6",
77
tmtName: "Fixed Reality"
88
}
99

js/utils.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,12 @@ function notifyLayer(name) {
219219
}
220220

221221
function subtabShouldNotify(layer, family, id) {
222-
let subtab = {}
223-
if (family == "mainTabs") subtab = tmp[layer].tabFormat[id]
224-
else subtab = tmp[layer].microtabs[family][id]
225-
226-
if (subtab.embedLayer) return tmp[subtab.embedLayer].notify
227-
else return subtab.shouldNotify
222+
let subtab = {}
223+
if (family == "mainTabs") subtab = tmp[layer].tabFormat[id]
224+
else subtab = tmp[layer].microtabs[family][id]
225+
if (!subtab.unlocked) return false
226+
if (subtab.embedLayer) return tmp[subtab.embedLayer].notify
227+
else return subtab.shouldNotify
228228
}
229229

230230
function subtabResetNotify(layer, family, id) {

0 commit comments

Comments
 (0)