1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-17 11:11:08 +00:00

Finished "hide tree" functionality and back button, a few other fixes

This commit is contained in:
Acamaeda 2020-10-31 23:05:50 -04:00
parent e8fee8a57d
commit e248e10b99
5 changed files with 42 additions and 105 deletions

View file

@ -100,6 +100,7 @@ function startPlayerBase() {
showStory: true,
points: modInfo.initialStartPoints,
subtabs: {},
lastSafeTab: (layoutInfo.showTree ? "none" : "layoutInfo.startTab")
}
}
@ -601,14 +602,14 @@ function showTab(name) {
var toTreeTab = name == "none"
player.tab = name
if (player.navTab == "none" && (tmp[name].row !== "side") && (tmp[name].row !== "otherside")) player.lastSafeTab = name
delete player.notify[name]
needCanvasUpdate = true
}
function goBack() {
if (player.navTab !== "none") showTab("none")
else showTab(layoutInfo.startTab)
else showTab(player.lastSafeTab)
}
function notifyLayer(name) {