fix no transformation icon, progress-only line height
This commit is contained in:
1 parent
cff0f56867
commit
a7ecfa65ea
1 file changed
+3
-2
@@ -655,7 +655,8 @@ function EID:printDescription(desc, cachedID)
|
|||||||
--Display Transformation
|
--Display Transformation
|
||||||
if not (desc.Transformation == "0" or desc.Transformation == "" or desc.Transformation == nil) then
|
if not (desc.Transformation == "0" or desc.Transformation == "" or desc.Transformation == nil) then
|
||||||
for transform in string.gmatch(desc.Transformation, "([^,]+)") do
|
for transform in string.gmatch(desc.Transformation, "([^,]+)") do
|
||||||
local transformSprite = EID:getTransformationIcon(transform)
|
--have a blank sprite info table if we aren't displaying it
|
||||||
|
local transformSprite = EID.Config["TransformationIcons"] and EID:getTransformationIcon(transform) or {}
|
||||||
local transformLineHeight = EID.lineHeight
|
local transformLineHeight = EID.lineHeight
|
||||||
if EID.Config["TransformationIcons"] then
|
if EID.Config["TransformationIcons"] then
|
||||||
transformLineHeight = math.max(EID.lineHeight, transformSprite[4])
|
transformLineHeight = math.max(EID.lineHeight, transformSprite[4])
|
||||||
@@ -691,7 +692,7 @@ function EID:printDescription(desc, cachedID)
|
|||||||
EID:getTransformationColor()
|
EID:getTransformationColor()
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
if (EID.Config["TransformationIcons"] or EID.Config["TransformationText"]) then
|
if (EID.Config["TransformationIcons"] or EID.Config["TransformationText"] or EID.Config["TransformationProgress"]) then
|
||||||
renderPos.Y = renderPos.Y + transformLineHeight * EID.Scale
|
renderPos.Y = renderPos.Y + transformLineHeight * EID.Scale
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user