Changed default Y position

This commit is contained in:
Wofsauge committed 2020-11-30 19:50:48 +01:00
1 parent 5ba51f813f
commit baa01aa327
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -30,8 +30,8 @@ EID.DefaultConfig = {
-- Default = 50 -- Default = 50
["XPosition"] = 50, ["XPosition"] = 50,
-- Set Y Position (Height) of the descriptiontext -- Set Y Position (Height) of the descriptiontext
-- Default = 33 -- Default = 35
["YPosition"] = 33, ["YPosition"] = 35,
-- Set the distance to an item in which informations will be displayed (in Tiles) -- Set the distance to an item in which informations will be displayed (in Tiles)
-- Default = 5 -- Default = 5
["MaxDistance"] = 5, ["MaxDistance"] = 5,
+3 -3
View File
@@ -138,10 +138,10 @@ function EID:printDescription(desc)
renderID = desc.RealID renderID = desc.RealID
end end
if iconType ~= nil then if iconType ~= nil then
offsetX = offsetX + 12 offsetX = offsetX + 14
EID:renderString( EID:renderString(
"{{" .. iconType .. renderID .. "}}", "{{" .. iconType .. renderID .. "}}",
renderPos + (Vector(-3, -5) * EID.Config["Scale"]), renderPos + (Vector(-3, -4) * EID.Config["Scale"]),
textScale, textScale,
EID:getNameColor() EID:getNameColor()
) )
@@ -245,7 +245,7 @@ end
function EID:renderQuestionMark() function EID:renderQuestionMark()
EID.IconSprite:Play("CurseOfBlind") EID.IconSprite:Play("CurseOfBlind")
local pos = EID:getTextPosition() local pos = EID:getTextPosition()
EID:renderIcon(EID.IconSprite, pos.X + 5 * EID.Config["Scale"], pos.X + 5 * EID.Config["Scale"]) EID:renderIcon(EID.IconSprite, pos.X + 5 * EID.Config["Scale"], pos.Y + 5 * EID.Config["Scale"])
end end
function EID:renderIndicator(entity) function EID:renderIndicator(entity)