From 88b9ceecbf9b8aefe9b364482096b0cafbd0c93b Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Fri, 30 Jul 2021 00:05:10 +0200 Subject: [PATCH] Renamed getScreenSize function --- eid_api.lua | 4 ++-- main.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index 7e33f785..c804c474 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -798,7 +798,7 @@ function EID:handleHUDElement(hudElement) for k,v in pairs(hudElement) do alteredHudElement[k] = v end - local screenSize = EID:GetScreenSize() + local screenSize = EID:getScreenSize() local hudOffset = EID.Config["HUDOffset"] for _,v in ipairs(hudElement.anchors) do if v == "TOP" then @@ -816,7 +816,7 @@ function EID:handleHUDElement(hudElement) return alteredHudElement end -function EID:GetScreenSize() +function EID:getScreenSize() local room = game:GetRoom() local pos = room:WorldToScreenPosition(Vector(0,0)) - room:GetRenderScrollOffset() - Game().ScreenShakeOffset diff --git a/main.lua b/main.lua index 7e912883..1cbe11d8 100644 --- a/main.lua +++ b/main.lua @@ -405,7 +405,7 @@ function EID:renderIndicator(entity) if REPENTANCE then repDiv = 255 if isMirrorRoom then - local screenCenter = EID:GetScreenSize()/2 + local screenCenter = EID:getScreenSize()/2 entityPos.X = entityPos.X - (entityPos-screenCenter).X * 2 sprite.FlipX = true end