1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-10 12:01:32 +00:00

Fixed issues with embedding and highlighting subtabs

This commit is contained in:
Acamaeda 2020-10-29 21:06:37 -04:00
parent ca76d130fd
commit 1a83d63711
4 changed files with 15 additions and 5 deletions

View file

@ -609,6 +609,15 @@ function notifyLayer(name) {
player.notify[name] = 1
}
function subtabShouldNotify(layer, family, id){
let subtab = {}
if (family == "mainTabs") subtab = tmp[layer].tabFormat[id]
else subtab = tmp[layer].microtabs[family][id]
if (player.subtabs[layer][family] === id) return false
else if (subtab.embedLayer) return tmp[subtab.embedLayer].notify
else return subtab.shouldNotify
}
function nodeShown(layer) {
if (tmp[layer].layerShown) return true
switch(layer) {