1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 09:21:46 +00:00

Fixed issues when the tree tab is disabled

This commit is contained in:
Harley White 2021-05-27 15:28:35 -04:00
parent 01a04173c8
commit 00a5c2f288
6 changed files with 8 additions and 7 deletions

View file

@ -1,5 +1,8 @@
# The Modding Tree changelog: # The Modding Tree changelog:
### v2.5.11.1 - 5/27/21
- Fixed issues caused when the tree tab is disabled.
### v2.5.11 - 5/27/21 ### v2.5.11 - 5/27/21
- Finished part 1 of the "making a mod" tutorial. - Finished part 1 of the "making a mod" tutorial.
- The challenge that you are currently in is highlighted, and will not be hidden if "hide completed challenges" is on and it is already completed. - The challenge that you are currently in is highlighted, and will not be hidden if "hide completed challenges" is on and it is already completed.

View file

@ -67,8 +67,7 @@
<div id="version" onclick="showTab('changelog-tab')" class="overlayThing" style="margin-right: 13px" > <div id="version" onclick="showTab('changelog-tab')" class="overlayThing" style="margin-right: 13px" >
{{VERSION.withoutName}}</div> {{VERSION.withoutName}}</div>
<button <button
v-if="((player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside' || player[player.tab].prevTab)) || player[player.navTab].prevTab)" v-if="((player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside' || player[player.tab].prevTab)) || player[player.navTab]?.prevTab)" class="other-back overlayThing" onclick="goBack(player.navTab == 'none' ? player.tab : player.navTab)">←</button>
class="other-back overlayThing" onclick="goBack(player.navTab == 'none' ? player.tab : player.navTab)">←</button>
<img id="optionWheel" class="overlayThing" v-if="player.tab!='options-tab'" src="options_wheel.png" <img id="optionWheel" class="overlayThing" v-if="player.tab!='options-tab'" src="options_wheel.png"
onclick="showTab('options-tab')"></img> onclick="showTab('options-tab')"></img>
<div id="info" v-if="player.tab!='info-tab'" class="overlayThing" onclick="showTab('info-tab')"><br>i</div> <div id="info" v-if="player.tab!='info-tab'" class="overlayThing" onclick="showTab('info-tab')"><br>i</div>

View file

@ -67,8 +67,7 @@
<div id="version" onclick="showTab('changelog-tab')" class="overlayThing" style="margin-right: 13px" > <div id="version" onclick="showTab('changelog-tab')" class="overlayThing" style="margin-right: 13px" >
{{VERSION.withoutName}}</div> {{VERSION.withoutName}}</div>
<button <button
v-if="((player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside' || player[player.tab].prevTab)) || player[player.navTab].prevTab)" v-if="((player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside' || player[player.tab].prevTab)) || player[player.navTab]?.prevTab)" class="other-back overlayThing" onclick="goBack(player.navTab == 'none' ? player.tab : player.navTab)">←</button>
class="other-back overlayThing" onclick="goBack(player.navTab == 'none' ? player.tab : player.navTab)">←</button>
<img id="optionWheel" class="overlayThing" v-if="player.tab!='options-tab'" src="options_wheel.png" <img id="optionWheel" class="overlayThing" v-if="player.tab!='options-tab'" src="options_wheel.png"
onclick="showTab('options-tab')"></img> onclick="showTab('options-tab')"></img>
<div id="info" v-if="player.tab!='info-tab'" class="overlayThing" onclick="showTab('info-tab')"><br>i</div> <div id="info" v-if="player.tab!='info-tab'" class="overlayThing" onclick="showTab('info-tab')"><br>i</div>

View file

@ -11,7 +11,7 @@ let modInfo = {
// Set your version in num and name // Set your version in num and name
let VERSION = { let VERSION = {
num: "2.5.11", num: "2.5.11.1",
name: "Dreams Really Do Come True", name: "Dreams Really Do Come True",
} }

View file

@ -4,7 +4,7 @@ var gameEnded = false;
// Don't change this // Don't change this
const TMT_VERSION = { const TMT_VERSION = {
tmtNum: "2.5.11", tmtNum: "2.5.11.1",
tmtName: "Dreams Really Do Come True" tmtName: "Dreams Really Do Come True"
} }

View file

@ -173,7 +173,7 @@ function goBack(layer) {
let nextTab = "none" let nextTab = "none"
if (player[layer].prevTab) nextTab = player[layer].prevTab if (player[layer].prevTab) nextTab = player[layer].prevTab
if (player.navTab !== "none" && (tmp[layer]?.row == "side" || tmp[layer].row == "side")) nextTab = player.lastSafeTab if (player.navTab === "none" && (tmp[layer]?.row == "side" || tmp[layer].row == "otherside")) nextTab = player.lastSafeTab
if (tmp[layer].leftTab) showNavTab(nextTab, layer) if (tmp[layer].leftTab) showNavTab(nextTab, layer)
else showTab(nextTab, layer) else showTab(nextTab, layer)