Commit 8ea21cba authored by Azilroka's avatar Azilroka

UnitFrames: Arena Preparation Spec

parent 687ac016
......@@ -164,4 +164,18 @@ function TukuiUnitFrames:Arena()
self.PVPSpecIcon = SpecIcon
self.Trinket = Trinket
self.RaidTargetIndicator = RaidIcon
self.PostUpdate = TukuiUnitFrames.PostUpdateArenaPreparation
end
function TukuiUnitFrames:PostUpdateArenaPreparation(event)
if self:IsElementEnabled('PVPSpecIcon') then
local specID = self.id and GetArenaOpponentSpec(tonumber(self.id))
if specID and specID > 0 then
local _, _, _, icon = GetSpecializationInfoByID(specID);
self.PVPSpecIcon.Icon:SetTexture(icon)
else
self.PVPSpecIcon.Icon:SetTexture([[INTERFACE\ICONS\INV_MISC_QUESTIONMARK]])
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment