aboutsummaryrefslogtreecommitdiff
path: root/features/events/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-28 21:54:02 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-28 21:54:02 +0800
commit1e25b92fe2a47644ca6a25a25976d89a5c7a6e8c (patch)
tree15f44d7efd50a049fa856778b56f10a8dbb61999 /features/events/index.js
parent1da702b92a1bb9a6b16d5135e9f0e40d4e2d27c8 (diff)
downloadSoopyV2-1e25b92fe2a47644ca6a25a25976d89a5c7a6e8c.tar.gz
SoopyV2-1e25b92fe2a47644ca6a25a25976d89a5c7a6e8c.tar.bz2
SoopyV2-1e25b92fe2a47644ca6a25a25976d89a5c7a6e8c.zip
add only show waypoint path option
Diffstat (limited to 'features/events/index.js')
-rw-r--r--features/events/index.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/features/events/index.js b/features/events/index.js
index c10e2f8..6e12d9f 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -35,6 +35,7 @@ class Events extends Feature {
this.burrialWaypointsEnabled = new ToggleSetting("Burrial waypoints", "Show waypoints for burrials during the diana event", true, "burrial_waypoints", this)
this.burrialWaypointsPath = new ToggleSetting("Pathfind waypoints", "Calculate a path thru all the waypoints", true, "burrial_waypoints_path", this).requires(this.burrialWaypointsEnabled)
+ this.onlyShowPath = new ToggleSetting("Only show waypoint path", "For if u want to use other mod waypoints + soopy path", false, "burrial_waypoints_only_path", this).requires(this.burrialWaypointsPath)
this.burrialWaypointsNearest = new ToggleSetting("Show nearest using pathfinding", "Use pathfinding to highlight the next burrial instead of disance", true, "burrial_nearest_path", this).requires(this.burrialWaypointsEnabled)
this.updateTimerEnabled = new ToggleSetting("Show API update timer", "Shows a countdown till the burrial waypoints will be next updated", true, "burrial_timer", this).requires(this.burrialWaypointsEnabled)
@@ -84,7 +85,7 @@ class Events extends Feature {
lastPoint = point
})
}
- if(this.showingWaypoints){
+ if(this.showingWaypoints && !this.onlyShowPath.getValue()){
this.burrialData.locations.forEach((loc,i)=>{
let typeReplace = [
@@ -205,7 +206,6 @@ class Events extends Feature {
apiLoad(data, dataType, isSoopyServer, isLatest){
if(isSoopyServer || dataType !== "skyblock" || !isLatest) return
this.lastRequest = Date.now()
- ChatLib.chat("loading api ")
let profileData = data.profiles[0].members[Player.getUUID().toString().replace(/-/g,"")]
@@ -258,7 +258,6 @@ class Events extends Feature {
}
}
})
- ChatLib.chat("Loaeded " +newLocs.length)
this.burrialData.locations = newLocs
this.sortBurrialLocations()