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:
parent
ca76d130fd
commit
1a83d63711
4 changed files with 15 additions and 5 deletions
js
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue