aboutsummaryrefslogtreecommitdiff
path: root/features/hud
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-05 10:47:22 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-05 10:47:22 +0800
commitf29594f1c6407cdf782ea5d4510e23567b013a00 (patch)
tree209d82d1dc94789418b0a133e6903bd9dc33c394 /features/hud
parentbc3e2d89ee5ecaf598aa7f7bc862cf29b852671e (diff)
downloadSoopyV2-f29594f1c6407cdf782ea5d4510e23567b013a00.tar.gz
SoopyV2-f29594f1c6407cdf782ea5d4510e23567b013a00.tar.bz2
SoopyV2-f29594f1c6407cdf782ea5d4510e23567b013a00.zip
+ metal detector waypoints
Diffstat (limited to 'features/hud')
-rw-r--r--features/hud/index.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/features/hud/index.js b/features/hud/index.js
index 5425f1f..11c2554 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -146,7 +146,9 @@ class Hud extends Feature {
.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))
+ .requires(this.showLobbyDay)
+ .editTempText("&6Day&7> &f5.15"))
+ this.showLobbyDayOnlyUnder30 = new ToggleSetting("Show Current Lobby Day ONLY WHEN under day 30", "", true, "lobby_day_30", this)
this.hudElements.push(this.lobbyDayElement)
let hudStatTypes = {
@@ -304,7 +306,11 @@ class Hud extends Feature {
}
step_1second() {
- if (World.getTime() !== 0) this.lobbyDayElement.setText("&6Day&7> &f" + (World.getTime() / 20 / 60 / 20).toFixed(2))
+ if (World.getTime() / 20 / 60 / 20 > 30 && this.showLobbyDayOnlyUnder30.getValue()) {
+ this.lobbyDayElement.setText("")
+ } else {
+ if (World.getTime() !== 0) this.lobbyDayElement.setText("&6Day&7> &f" + (World.getTime() / 20 / 60 / 20).toFixed(2))
+ }
if (!this.lagEnabled.getValue()) {
if (this.packetReceived) this.packetReceived.unregister()