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:
1 parent
e5f0b3c33e
commit
2e39301a93
1 file changed
+7
-4
@@ -607,8 +607,9 @@ function EID:printDescription(desc, cachedID)
|
||||
offsetX = offsetX + 8
|
||||
end
|
||||
--Display Itemname
|
||||
local curName = ""
|
||||
if EID.Config["ShowItemName"] then
|
||||
local curName = desc.Name
|
||||
curName = desc.Name
|
||||
if EID.Config["TranslateItemName"] ~= 2 then
|
||||
local curLanguage = EID.Config["Language"]
|
||||
if EID:getLanguage() ~= "en_us" then
|
||||
@@ -622,6 +623,7 @@ function EID:printDescription(desc, cachedID)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
-- Display Entity ID
|
||||
if EID.Config["ShowObjectID"] and desc.ObjType > 0 then
|
||||
curName = curName.." {{ColorGray}}"..desc.ObjType.."."..desc.ObjVariant.."."..desc.ObjSubType
|
||||
@@ -647,7 +649,6 @@ function EID:printDescription(desc, cachedID)
|
||||
textScale,
|
||||
EID:getNameColor()
|
||||
)
|
||||
end
|
||||
|
||||
renderPos.Y = renderPos.Y + EID.lineHeight * EID.Scale
|
||||
|
||||
@@ -660,9 +661,11 @@ function EID:printDescription(desc, cachedID)
|
||||
transformLineHeight = math.max(EID.lineHeight, transformSprite[4])
|
||||
EID:renderInlineIcons({{transformSprite,0}}, renderPos.X, renderPos.Y)
|
||||
end
|
||||
if EID.Config["TransformationText"] or EID.Config["TransformationProgress"] then
|
||||
local transformationName = ""
|
||||
if EID.Config["TransformationText"] then
|
||||
local transformationName = EID:getTransformationName(transform)
|
||||
if true then
|
||||
transformationName = EID:getTransformationName(transform).." "
|
||||
end
|
||||
if EID.Config["TransformationProgress"] then
|
||||
-- TODO: call evaluate only when ItemQueue of player changes to save performance
|
||||
EID:evaluateTransformationProgress(transform)
|
||||
|
||||
Reference in new issue
Block a user