Changed default Y position
This commit is contained in:
1 parent
5ba51f813f
commit
baa01aa327
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -30,8 +30,8 @@ EID.DefaultConfig = {
|
||||
-- Default = 50
|
||||
["XPosition"] = 50,
|
||||
-- Set Y Position (Height) of the descriptiontext
|
||||
-- Default = 33
|
||||
["YPosition"] = 33,
|
||||
-- Default = 35
|
||||
["YPosition"] = 35,
|
||||
-- Set the distance to an item in which informations will be displayed (in Tiles)
|
||||
-- Default = 5
|
||||
["MaxDistance"] = 5,
|
||||
|
||||
@@ -138,10 +138,10 @@ function EID:printDescription(desc)
|
||||
renderID = desc.RealID
|
||||
end
|
||||
if iconType ~= nil then
|
||||
offsetX = offsetX + 12
|
||||
offsetX = offsetX + 14
|
||||
EID:renderString(
|
||||
"{{" .. iconType .. renderID .. "}}",
|
||||
renderPos + (Vector(-3, -5) * EID.Config["Scale"]),
|
||||
renderPos + (Vector(-3, -4) * EID.Config["Scale"]),
|
||||
textScale,
|
||||
EID:getNameColor()
|
||||
)
|
||||
@@ -245,7 +245,7 @@ end
|
||||
function EID:renderQuestionMark()
|
||||
EID.IconSprite:Play("CurseOfBlind")
|
||||
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
|
||||
|
||||
function EID:renderIndicator(entity)
|
||||
|
||||
Reference in new issue
Block a user