aboutsummaryrefslogtreecommitdiff
path: root/features/hud
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 /features/hud
parent19276a08b82a1b8967811d0cd1d95676c3958002 (diff)
downloadSoopyV2-ae748a62f6424b0ac2604c2cceb551b0ca5742b2.tar.gz
SoopyV2-ae748a62f6424b0ac2604c2cceb551b0ca5742b2.tar.bz2
SoopyV2-ae748a62f6424b0ac2604c2cceb551b0ca5742b2.zip
add current lobby day display
Diffstat (limited to 'features/hud')
-rw-r--r--features/hud/index.js10
1 files changed, 10 insertions, 0 deletions
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