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
-1
View File
@@ -65,7 +65,6 @@
local FormatTooltipNumber = ToKFunctions[8]
local TooltipMaximizedMethod = 1
--local CLASS_ICON_TCOORDS = _G.CLASS_ICON_TCOORDS
local is_player_class = Details.player_class
Details.tooltip_key_overlay1 = {1, 1, 1, .2}
+1 -1
View File
@@ -1819,7 +1819,7 @@ function healingClass:MontaInfoHealTaken()
--hes:UpdadeInfoBar(row, index, spellid, name, value, max, percent, icon, detalhes)
local texCoords = CLASS_ICON_TCOORDS [tabela[4]]
local texCoords = Details.class_coords[tabela[4]]
if (not texCoords) then
texCoords = _detalhes.class_coords ["UNKNOW"]
end
+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)