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();