From a856b4017d790c2350cd5459b4d0f4d6d55d631f Mon Sep 17 00:00:00 2001
From: Pyro Nicampt <81565698+PyroNicampt@users.noreply.github.com>
Date: Sat, 15 Mar 2025 22:31:05 -0500
Subject: [PATCH] Add cursor coordinate display
---
index.html | 1 +
index.js | 2 ++
2 files changed, 3 insertions(+)
diff --git a/index.html b/index.html
index cd96045..c32bacf 100644
--- a/index.html
+++ b/index.html
@@ -25,6 +25,7 @@
+
Map v0.6 alpha
Updated for Game Build 99.3
diff --git a/index.js b/index.js
index 2256a14..a787a73 100644
--- a/index.js
+++ b/index.js
@@ -166,6 +166,7 @@ function mapNavigationSetup(){
function tooltipSetup(){
const tooltip = document.getElementById('tooltip');
+ const cursorCoordDisplay = document.getElementById('cursorCoordDisplay');
let tooltipX = 0;
let tooltipY = 0;
let tooltipDirty = false;
@@ -204,6 +205,7 @@ function tooltipSetup(){
}
tooltipDirty = false;
}
+ cursorCoordDisplay.innerHTML = `X: ${MapData.view.unconvertX(tooltipX).toFixed(2)} / Z: ${MapData.view.unconvertY(tooltipY).toFixed(2)}`;
requestAnimationFrame(tooltipUpdate);
}
tooltipUpdate();