mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-25 01:41:45 +00:00
Fixed error with jumping to the main tab
This commit is contained in:
parent
89c6f217e1
commit
b623844316
1 changed files with 2 additions and 3 deletions
|
@ -633,8 +633,7 @@ function inChallenge(layer, id){
|
||||||
var onTreeTab = true
|
var onTreeTab = true
|
||||||
function showTab(name) {
|
function showTab(name) {
|
||||||
if (LAYERS.includes(name) && !layerunlocked(name)) return
|
if (LAYERS.includes(name) && !layerunlocked(name)) return
|
||||||
if (player.tab === name && player.subtabs[name] && player.subtabs[name].mainTabs) {
|
if (player.tab === name && isPlainObject(tmp[name].tabFormat)) {
|
||||||
console.log("momo")
|
|
||||||
player.subtabs[name].mainTabs = Object.keys(layers[name].tabFormat)[0]
|
player.subtabs[name].mainTabs = Object.keys(layers[name].tabFormat)[0]
|
||||||
}
|
}
|
||||||
var toTreeTab = name == "none"
|
var toTreeTab = name == "none"
|
||||||
|
@ -813,7 +812,7 @@ var activePopups = [];
|
||||||
var popupID = 0;
|
var popupID = 0;
|
||||||
|
|
||||||
// Function to show popups
|
// 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) {
|
switch(type) {
|
||||||
case "achievement":
|
case "achievement":
|
||||||
popupTitle = "Achievement Unlocked!";
|
popupTitle = "Achievement Unlocked!";
|
||||||
|
|
Loading…
Reference in a new issue