Renamed getScreenSize function

This commit is contained in:
Wofsauge committed 2021-07-30 00:05:10 +02:00
1 parent 2228dde010
commit 88b9ceecbf
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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
+1 -1
View File
@@ -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