Prevented Transformation name and Item name config options to prevent other config options from showing (e.g. Item ID/Quality)

This commit is contained in:
Wofsauge committed 2022-03-19 02:52:17 +01:00
1 parent e5f0b3c33e
commit 2e39301a93
1 file changed
+7 -4
+7 -4
View File
@@ -607,8 +607,9 @@ function EID:printDescription(desc, cachedID)
offsetX = offsetX + 8 offsetX = offsetX + 8
end end
--Display Itemname --Display Itemname
local curName = ""
if EID.Config["ShowItemName"] then if EID.Config["ShowItemName"] then
local curName = desc.Name curName = desc.Name
if EID.Config["TranslateItemName"] ~= 2 then if EID.Config["TranslateItemName"] ~= 2 then
local curLanguage = EID.Config["Language"] local curLanguage = EID.Config["Language"]
if EID:getLanguage() ~= "en_us" then if EID:getLanguage() ~= "en_us" then
@@ -622,6 +623,7 @@ function EID:printDescription(desc, cachedID)
end end
end end
end end
end
-- Display Entity ID -- Display Entity ID
if EID.Config["ShowObjectID"] and desc.ObjType > 0 then if EID.Config["ShowObjectID"] and desc.ObjType > 0 then
curName = curName.." {{ColorGray}}"..desc.ObjType.."."..desc.ObjVariant.."."..desc.ObjSubType curName = curName.." {{ColorGray}}"..desc.ObjType.."."..desc.ObjVariant.."."..desc.ObjSubType
@@ -647,7 +649,6 @@ function EID:printDescription(desc, cachedID)
textScale, textScale,
EID:getNameColor() EID:getNameColor()
) )
end
renderPos.Y = renderPos.Y + EID.lineHeight * EID.Scale renderPos.Y = renderPos.Y + EID.lineHeight * EID.Scale
@@ -660,9 +661,11 @@ function EID:printDescription(desc, cachedID)
transformLineHeight = math.max(EID.lineHeight, transformSprite[4]) transformLineHeight = math.max(EID.lineHeight, transformSprite[4])
EID:renderInlineIcons({{transformSprite,0}}, renderPos.X, renderPos.Y) EID:renderInlineIcons({{transformSprite,0}}, renderPos.X, renderPos.Y)
end end
if EID.Config["TransformationText"] or EID.Config["TransformationProgress"] then
local transformationName = ""
if EID.Config["TransformationText"] then if EID.Config["TransformationText"] then
local transformationName = EID:getTransformationName(transform) transformationName = EID:getTransformationName(transform).." "
if true then end
if EID.Config["TransformationProgress"] then if EID.Config["TransformationProgress"] then
-- TODO: call evaluate only when ItemQueue of player changes to save performance -- TODO: call evaluate only when ItemQueue of player changes to save performance
EID:evaluateTransformationProgress(transform) EID:evaluateTransformationProgress(transform)