1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00

Fixed error with jumping to the main tab

This commit is contained in:
Acamaeda 2020-12-06 23:01:24 -05:00
parent 89c6f217e1
commit b623844316

View file

@ -633,8 +633,7 @@ function inChallenge(layer, id){
var onTreeTab = true
function showTab(name) {
if (LAYERS.includes(name) && !layerunlocked(name)) return
if (player.tab === name && player.subtabs[name] && player.subtabs[name].mainTabs) {
console.log("momo")
if (player.tab === name && isPlainObject(tmp[name].tabFormat)) {
player.subtabs[name].mainTabs = Object.keys(layers[name].tabFormat)[0]
}
var toTreeTab = name == "none"
@ -813,7 +812,7 @@ var activePopups = [];
var popupID = 0;
// Function to show popups
function addPopup(type="none",text="This is a test popup.",title="",timer=3) {
function addPopup(type="none",text="This is a test popup.",title="",timer=3, color="") {
switch(type) {
case "achievement":
popupTitle = "Achievement Unlocked!";