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:
parent
89c6f217e1
commit
b623844316
1 changed files with 2 additions and 3 deletions
|
@ -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!";
|
||||
|
|
Loading…
Reference in a new issue