aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-04 13:55:29 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-04 13:55:29 +0800
commitae748a62f6424b0ac2604c2cceb551b0ca5742b2 (patch)
tree0bc9804b96004fc516091cdf027a70fae7d7eaff
parent19276a08b82a1b8967811d0cd1d95676c3958002 (diff)
downloadSoopyV2-ae748a62f6424b0ac2604c2cceb551b0ca5742b2.tar.gz
SoopyV2-ae748a62f6424b0ac2604c2cceb551b0ca5742b2.tar.bz2
SoopyV2-ae748a62f6424b0ac2604c2cceb551b0ca5742b2.zip
add current lobby day display
-rw-r--r--features/dungeonSolvers/index.js6
-rw-r--r--features/globalSettings/index.js3
-rw-r--r--features/hud/index.js10
3 files changed, 16 insertions, 3 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js
index be405e4..02e59cb 100644
--- a/features/dungeonSolvers/index.js
+++ b/features/dungeonSolvers/index.js
@@ -289,7 +289,7 @@ class DungeonSolvers extends Feature {
// }
// ChatLib.chat("Loaded " + type)
// data.push({ type: "lever", location: finalLoc, phase: area })
- // waypoints.push(new Waypoint(finalLoc[0], finalLoc[1], finalLoc[2], 1, 0, 0, { name: type + " | " + area }))
+ // waypoints.push(new Waypoint(finalLoc[0], finalLoc[1], finalLoc[2], 1, 0, 0, { name: type + " | " + area }).startRender())
// return
// }
// if (type === "terminal") {
@@ -305,11 +305,11 @@ class DungeonSolvers extends Feature {
// }
// ChatLib.chat("Loaded " + type)
// data.push({ type: "terminal", location: finalLoc, phase: area })
- // waypoints.push(new Waypoint(finalLoc[0], finalLoc[1], finalLoc[2], 1, 0, 0, { name: type + " | " + area }))
+ // waypoints.push(new Waypoint(finalLoc[0], finalLoc[1], finalLoc[2], 1, 0, 0, { name: type + " | " + area }).startRender())
// return
// }
// ChatLib.chat("Loaded " + type)
- // waypoints.push(new Waypoint(finalLoc[0], finalLoc[1], finalLoc[2], 1, 0, 0, { name: type + " | " + area }))
+ // waypoints.push(new Waypoint(finalLoc[0], finalLoc[1], finalLoc[2], 1, 0, 0, { name: type + " | " + area }).startRender())
// data.push({ type: type, location: location, phase: area })
// }
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index 856791e..8ece6f8 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -109,6 +109,9 @@ class GlobalSettings extends Feature {
this.registerCommand("sweight", (user = Player.getName()) => {
this.soopyWeight(user)
})
+ this.registerCommand("lobbyday", () => {
+ ChatLib.chat(this.FeatureManager.messagePrefix + "Current lobby is day " + (World.getTime() / 20 / 60 / 20).toFixed(1))
+ })
this.lastCookies = 0
diff --git a/features/hud/index.js b/features/hud/index.js
index d7da499..a657eb7 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -141,6 +141,14 @@ class Hud extends Feature {
})
this.spotifyElement2.renderElm.stopRender()
+ this.showLobbyDay = new ToggleSetting("Show Current Lobby Day", "", true, "lobby_day", this)
+ this.lobbyDayElement = new HudTextElement()
+ .setText("&6Day&7> &fLoading...")
+ .setToggleSetting(this.showLobbyDay)
+ .setLocationSetting(new LocationSetting("Lobby Day Location", "Allows you to edit the location of the lobby day", "lobby_day_location", this, [10, 90, 1, 1])
+ .requires(this.showLobbyDay))
+ this.hudElements.push(this.lobbyDayElement)
+
let hudStatTypes = {
"cata": "Catacombs level + Exp",
"totaldeaths": "Total deaths"
@@ -296,6 +304,8 @@ class Hud extends Feature {
}
step_1second() {
+ if (World.getTime() !== 0) this.lobbyDayElement.setText("&6Day&7> &f" + (World.getTime() / 20 / 60 / 20).toFixed(1))
+
if (!this.lagEnabled.getValue()) {
if (this.packetReceived) this.packetReceived.unregister()
return