From d64ed77d8d19619b6562d8146a569bd02d41965a Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Fri, 30 Jul 2021 00:32:37 +0200 Subject: [PATCH] Fixed Cursor position being offset from the ingame cursor --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 970a91ee..9d3b9f9f 100644 --- a/main.lua +++ b/main.lua @@ -452,7 +452,7 @@ function EID:renderIndicator(entity) end function EID:renderHUDLocationIndicators() - local mousePos = Input.GetMousePosition(false) + local mousePos = Isaac.WorldToRenderPosition(Input.GetMousePosition(true)) * 2 Isaac.RenderScaledText("Mouse pos X:"..mousePos.X.." Y:"..mousePos.Y, 100, 10, 0.5, 0.5, 1 ,1 ,1 ,1 ) Isaac.RenderScaledText("HUD Adjustment Preview!", 200, 10, 1, 1, 1 ,0.25 ,0.25 ,1 ) for k, v in pairs(EID.HUDElements) do @@ -465,7 +465,7 @@ function EID:renderHUDLocationIndicators() end function EID:handleHoverHUD() - local mousePos = Input.GetMousePosition(false) + local mousePos = Isaac.WorldToRenderPosition(Input.GetMousePosition(true)) * 2 if EID.Config["ShowCursor"] then EID.CursorSprite:Render(Vector(mousePos.X/2, mousePos.Y/2), nullVector, nullVector) end