aboutsummaryrefslogtreecommitdiff
path: root/render/downtimeGui.js
diff options
context:
space:
mode:
authorNinjune <enderknight537@gmail.com>2022-12-07 21:36:53 -0600
committerNinjune <enderknight537@gmail.com>2022-12-07 21:36:53 -0600
commit1ffc0a89be42fcde95a04a87cc00dbc347b27ece (patch)
tree87ef5251d1fc2a32d495daa8f6a94e173c701f8e /render/downtimeGui.js
parent8ad19e54f6c3f44a84dd2565d910c207ffc5bc52 (diff)
downloadcoleweight-1ffc0a89be42fcde95a04a87cc00dbc347b27ece.tar.gz
coleweight-1ffc0a89be42fcde95a04a87cc00dbc347b27ece.tar.bz2
coleweight-1ffc0a89be42fcde95a04a87cc00dbc347b27ece.zip
v1.7.0v1.7.0
Diffstat (limited to 'render/downtimeGui.js')
-rw-r--r--render/downtimeGui.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/render/downtimeGui.js b/render/downtimeGui.js
index 538c590..e11c376 100644
--- a/render/downtimeGui.js
+++ b/render/downtimeGui.js
@@ -21,9 +21,9 @@ export function openDowntimeGui()
register("dragged", (dx, dy, x, y) => {
if (!downtimeMoveGui.isOpen()) return
- constants.downtimedata.x = x
- constants.downtimedata.y = y
- constants.downtimedata.save()
+ constants.collectiondata.x = x
+ constants.collectiondata.y = y
+ constants.collectiondata.save()
})
register('actionbar', (xp) => {
@@ -57,16 +57,16 @@ register("renderOverlay", () => {
let txt = "Drag to move."
Renderer.drawStringWithShadow(txt, Renderer.screen.getWidth()/2 - Renderer.getStringWidth(txt)/2, Renderer.screen.getHeight()/2)
downtimeGui.guiObject = {leftValues: ["Downtime", "Overall Downtime", "Average Downtime", "Uptime"], rightValues: [0, 0, 0, 0]}
- downtimeGui.x = constants.downtimedata.x
- downtimeGui.y = constants.downtimedata.y
+ downtimeGui.x = constants.collectiondata.x
+ downtimeGui.y = constants.collectiondata.y
downtimeGui.renderGui()
return
}
if (downtimeCount == 0 || !trackingDowntime || !settings.downtimeTracker) return
let avgDowntime = Math.ceil((overallDowntime/downtimeCount)*100) / 100
downtimeGui.guiObject = {leftValues: ["Downtime", "Overall Downtime", "Average Downtime", "Uptime"], rightValues: [downtime, overallDowntime, avgDowntime, uptime]}
- downtimeGui.x = constants.downtimedata.x
- downtimeGui.y = constants.downtimedata.y
+ downtimeGui.x = constants.collectiondata.x
+ downtimeGui.y = constants.collectiondata.y
downtimeGui.renderGui()
})