Changed the raid icons to use the original Blizzard icons!

This commit is contained in:
Meow
2026-03-31 01:43:05 +02:00
parent e66062c3b6
commit 91590b5025
3 changed files with 14 additions and 4 deletions
+11 -1
View File
@@ -924,7 +924,7 @@ function pfUI.uf:UpdateConfig()
f.raidIcon:SetWidth(f.config.raidiconsize)
f.raidIcon:SetHeight(f.config.raidiconsize)
f.raidIcon:SetPoint("CENTER", f, f.config.raidiconalign, f.config.raidiconoffx, f.config.raidiconoffy)
f.raidIcon.texture:SetTexture(pfUI.media["img:raidicons"])
f.raidIcon.texture:SetTexture("Interface\\TargetingFrame\\UI-RaidTargetingIcons")
f.raidIcon.texture:SetAllPoints(f.raidIcon)
f.raidIcon:Hide()
@@ -1187,6 +1187,16 @@ function pfUI.uf.OnEvent()
if pfUI.uf.ClearGuidTracking then pfUI.uf.ClearGuidTracking() end
elseif this.label == "target" and event == "PLAYER_TARGET_CHANGED" and not pfScanActive == true then
this.update_full = true
-- immediately update raid icon to avoid delay on target swap
if this.raidIcon and this.config and this.config.raidicon == "1" then
local raidIcon = UnitName("target") and GetRaidTargetIndex("target")
if raidIcon then
SetRaidTargetIconTexture(this.raidIcon.texture, raidIcon)
this.raidIcon:Show()
else
this.raidIcon:Hide()
end
end
elseif ( this.label == "raid" or this.label == "party" or this.label == "player" ) and event == "PARTY_MEMBERS_CHANGED" then
-- Smart update: check if THIS frame's unit actually changed
if pfUI.uf.guidTracker and this.id then