fix bad class icon

This commit is contained in:
andrew6180
2024-05-26 20:04:08 -07:00
parent 14c3a45d1a
commit 2368623870
9 changed files with 20 additions and 36 deletions
+4 -4
View File
@@ -650,9 +650,9 @@ function atributo_misc:UpdateDeathRow(deathTable, whichRowLine, rankPosition, in
thisRow.icone_classe:SetTexture(instanceObject.row_info.spec_file)
thisRow.icone_classe:SetTexCoord(unpack(_detalhes.class_specs_coords[spec]))
else
if (CLASS_ICON_TCOORDS [deathTable[4]]) then
if (Details.class_coords[deathTable[4]]) then
thisRow.icone_classe:SetTexture(instanceObject.row_info.icon_file)
thisRow.icone_classe:SetTexCoord(unpack(CLASS_ICON_TCOORDS [deathTable[4]]))
thisRow.icone_classe:SetTexCoord(unpack(Details.class_coords[deathTable[4]]))
else
local texture, l, r, t, b = Details:GetUnknownClassIcon()
thisRow.icone_classe:SetTexture(texture)
@@ -660,9 +660,9 @@ function atributo_misc:UpdateDeathRow(deathTable, whichRowLine, rankPosition, in
end
end
else
if (CLASS_ICON_TCOORDS [deathTable[4]]) then
if (Details.class_coords[deathTable[4]]) then
thisRow.icone_classe:SetTexture(instanceObject.row_info.icon_file)
thisRow.icone_classe:SetTexCoord(unpack(CLASS_ICON_TCOORDS [deathTable[4]]))
thisRow.icone_classe:SetTexCoord(unpack(Details.class_coords[deathTable[4]]))
else
local texture, l, r, t, b = Details:GetUnknownClassIcon()
thisRow.icone_classe:SetTexture(texture)