diff --git a/src/EntranceMenu.js b/src/EntranceMenu.js
index e48d849..caae8f3 100644
--- a/src/EntranceMenu.js
+++ b/src/EntranceMenu.js
@@ -39,7 +39,7 @@ class EntranceMenu extends React.Component {
disableScrollLock={true}
>
{Object.keys(this.props.entrancePool).sort().map((areaCategory, l) => {
- if (((areaCategory === this.props.title && areaCategory !== "Spawn Points") || areaCategory === "Warp Songs" || this.props.entrancePool[areaCategory].length === 0) && this.props.connector === false) {
+ if (((areaCategory === this.props.title && !(this.props.oneWay)) || areaCategory === "Warp Songs" || this.props.entrancePool[areaCategory].length === 0) && this.props.connector === false) {
return null;
} else {
let eOptions = this.props.entrancePool[areaCategory].sort(function(a,b) {
diff --git a/src/LinkedEntrance.js b/src/LinkedEntrance.js
index 0cf62a2..6893fa9 100644
--- a/src/LinkedEntrance.js
+++ b/src/LinkedEntrance.js
@@ -69,10 +69,8 @@ class LinkedEntrance extends React.Component {
}
}
if (this.props.allAreas.entrances[reverseLink].type === "dungeon") {
- if (this.props.dungeon) {
+ if (this.props.allAreas.entrances[reverseLink].isReverse === true) {
href = '#' + this.props.allAreas.entrances[reverseLink].area;
- } else if (this.props.allAreas.entrances[reverseLink].isReverse === true) {
- href = '#' + this.props.allAreas.entrances[reverseLink].reverseAlias;
} else {
href = '#' + this.props.allAreas.entrances[reverseLink].alias;
}
diff --git a/src/Tracker.js b/src/Tracker.js
index 7b31982..8bdfb75 100644
--- a/src/Tracker.js
+++ b/src/Tracker.js
@@ -687,6 +687,12 @@ const useStyles = (theme) => ({
backgroundColor: blueGrey[800],
}
},
+ warpMenuAreaHidden: {
+ display: 'block',
+ color: grey[500],
+ fontWeight: 'bold',
+ padding: theme.spacing(1),
+ },
warpSongsBig: {
[theme.breakpoints.down('xs')]: {
display: 'none',
@@ -1970,6 +1976,9 @@ class Tracker extends React.Component {
anchor="left"
open={this.state.openSettings}
classes={{paper: classes.drawerPaper}}
+ SlideProps={{
+ unmountOnExit: true,
+ }}
>
@@ -2002,6 +2011,7 @@ class Tracker extends React.Component {
allAreas={this.state.allAreas}
connector={this.state.entranceConnector === 'true'}
title={this.state.entranceToLink ? this.state.allAreas.entrances[this.state.entranceToLink].area : ''}
+ oneWay={this.state.entranceToLink ? this.state.allAreas.entrances[this.state.entranceToLink].oneWay : false}
sourceEntrance={this.state.entranceToLink}
classes={classes}
id="globalEntranceMenu"
@@ -2111,7 +2121,7 @@ class Tracker extends React.Component {
/>
-
this.setState({ expandSongMenu: false })}>
+ this.state.expandSongMenu ? this.setState({ expandSongMenu: false }) : null}>
this.setState({ expandSongMenu: !this.state.expandSongMenu })}
@@ -2123,7 +2133,7 @@ class Tracker extends React.Component {
- this.setState({ expandWarpMenu: false })}>
+ this.state.expandWarpMenu ? this.setState({ expandWarpMenu: false }) : null}>
this.setState({ expandWarpMenu: !this.state.expandWarpMenu })}
@@ -2136,7 +2146,7 @@ class Tracker extends React.Component {
{
}
- this.setState({ expandDungeonMenu: false })}>
+ this.state.expandDungeonMenu ? this.setState({ expandDungeonMenu: false }) : null}>
this.setState({ expandDungeonMenu: !this.state.expandDungeonMenu })}
@@ -2174,12 +2184,16 @@ class Tracker extends React.Component {
unmountOnExit
className={classes.warpAreaList}
>
- { Object.keys(this.state.areas).sort().filter((a) => (this.state.areas[a].show)).map((area, ia) => {
+ { Object.keys(this.state.areas).sort().filter((a) => (!(this.state.areas[a].dungeon))).map((area, ia) => {
return (
this.handleWarpMenu(area)}
+ className={this.state.areas[area].show ?
+ classes.warpMenuArea :
+ classes.warpMenuAreaHidden}
+ onClick={this.state.areas[area].show ?
+ () => this.handleWarpMenu(area)
+ : null}
>
{area}
@@ -2213,7 +2227,7 @@ class Tracker extends React.Component {
{
this.state.settings["View"] === "Overworld" ?
- Object.keys(this.state.areas).sort().filter((a) => (this.state.areas[a].show)).map((area, ia) => {
+ Object.keys(this.state.areas).sort().filter((a) => (this.state.areas[a].show && !(this.state.areas[a].dungeon))).map((area, ia) => {
return (
Temple of Time",
"alias": "Prelude of Light",
"type": "song",
@@ -457,7 +457,7 @@
"walletTier": 0
},
"Light Arrow Cutscene": {
- "area": "Temple of Time",
+ "area": "",
"lKey": "ToT Entrance -> Temple of Time",
"alias": "Light Arrow Cutscene",
"type": "item",