mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
Changed the raid icons to use the original Blizzard icons!
This commit is contained in:
+11
-1
@@ -924,7 +924,7 @@ function pfUI.uf:UpdateConfig()
|
|||||||
f.raidIcon:SetWidth(f.config.raidiconsize)
|
f.raidIcon:SetWidth(f.config.raidiconsize)
|
||||||
f.raidIcon:SetHeight(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: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.texture:SetAllPoints(f.raidIcon)
|
||||||
f.raidIcon:Hide()
|
f.raidIcon:Hide()
|
||||||
|
|
||||||
@@ -1187,6 +1187,16 @@ function pfUI.uf.OnEvent()
|
|||||||
if pfUI.uf.ClearGuidTracking then pfUI.uf.ClearGuidTracking() end
|
if pfUI.uf.ClearGuidTracking then pfUI.uf.ClearGuidTracking() end
|
||||||
elseif this.label == "target" and event == "PLAYER_TARGET_CHANGED" and not pfScanActive == true then
|
elseif this.label == "target" and event == "PLAYER_TARGET_CHANGED" and not pfScanActive == true then
|
||||||
this.update_full = true
|
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
|
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
|
-- Smart update: check if THIS frame's unit actually changed
|
||||||
if pfUI.uf.guidTracker and this.id then
|
if pfUI.uf.guidTracker and this.id then
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ pfUI.marktracking = CreateFrame("Frame", "pfMarkTracking", UIParent)
|
|||||||
row.icon:SetWidth(ROW_HEIGHT)
|
row.icon:SetWidth(ROW_HEIGHT)
|
||||||
row.icon:SetHeight(ROW_HEIGHT)
|
row.icon:SetHeight(ROW_HEIGHT)
|
||||||
row.icon:SetPoint("LEFT", row, "LEFT", 1, 0)
|
row.icon:SetPoint("LEFT", row, "LEFT", 1, 0)
|
||||||
row.icon:SetTexture(pfUI.media["img:raidicons"])
|
row.icon:SetTexture("Interface\\TargetingFrame\\UI-RaidTargetingIcons")
|
||||||
SetRaidTargetIconTexture(row.icon, i)
|
SetRaidTargetIconTexture(row.icon, i)
|
||||||
|
|
||||||
-- portrait (right side)
|
-- portrait (right side)
|
||||||
@@ -246,6 +246,7 @@ pfUI.marktracking = CreateFrame("Frame", "pfMarkTracking", UIParent)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
row:Show()
|
row:Show()
|
||||||
|
SetRaidTargetIconTexture(row.icon, i)
|
||||||
prevRow = row
|
prevRow = row
|
||||||
anyActive = true
|
anyActive = true
|
||||||
visibleCount = visibleCount + 1
|
visibleCount = visibleCount + 1
|
||||||
|
|||||||
@@ -753,7 +753,6 @@ nameplates:RegisterEvent("ZONE_CHANGED_NEW_AREA")
|
|||||||
|
|
||||||
nameplate.raidicon:SetParent(plate)
|
nameplate.raidicon:SetParent(plate)
|
||||||
nameplate.raidicon:SetDrawLayer("OVERLAY")
|
nameplate.raidicon:SetDrawLayer("OVERLAY")
|
||||||
nameplate.raidicon:SetTexture(pfUI.media["img:raidicons"])
|
|
||||||
|
|
||||||
nameplate.totem = CreateFrame("Frame", nil, nameplate)
|
nameplate.totem = CreateFrame("Frame", nil, nameplate)
|
||||||
nameplate.totem:SetPoint("CENTER", nameplate, "CENTER", 0, 0)
|
nameplate.totem:SetPoint("CENTER", nameplate, "CENTER", 0, 0)
|
||||||
@@ -893,7 +892,7 @@ nameplates:RegisterEvent("ZONE_CHANGED_NEW_AREA")
|
|||||||
nameplate.glow:SetVertexColor(glowr, glowg, glowb, glowa)
|
nameplate.glow:SetVertexColor(glowr, glowg, glowb, glowa)
|
||||||
|
|
||||||
nameplate.raidicon:ClearAllPoints()
|
nameplate.raidicon:ClearAllPoints()
|
||||||
nameplate.raidicon:SetPoint(C.nameplates.raidiconpos, nameplate.health, C.nameplates.raidiconpos, C.nameplates.raidiconoffx, C.nameplates.raidiconoffy)
|
nameplate.raidicon:SetPoint("BOTTOM", nameplate.health, "TOP", C.nameplates.raidiconoffx, C.nameplates.raidiconoffy)
|
||||||
nameplate.level:SetFont(font, font_size, font_style)
|
nameplate.level:SetFont(font, font_size, font_style)
|
||||||
nameplate.raidicon:SetWidth(C.nameplates.raidiconsize)
|
nameplate.raidicon:SetWidth(C.nameplates.raidiconsize)
|
||||||
nameplate.raidicon:SetHeight(C.nameplates.raidiconsize)
|
nameplate.raidicon:SetHeight(C.nameplates.raidiconsize)
|
||||||
|
|||||||
Reference in New Issue
Block a user