X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/187bc844d76101a0e2cebbb8ac9e6fae17b22c14..3f90dc319e4001bc0c10c00d3cd00a81a51b220c:/OmaUF/Events.lua?ds=sidebyside diff --git a/OmaUF/Events.lua b/OmaUF/Events.lua index 8121ae6..59b8592 100644 --- a/OmaUF/Events.lua +++ b/OmaUF/Events.lua @@ -251,6 +251,10 @@ local function updateStatus(frame, unit) end end +local pvpIcons = { + Alliance = "Interface\\TARGETINGFRAME\\UI-PVP-Alliance", + Horde = "Interface\\TARGETINGFRAME\\UI-PVP-Horde" +}; local function updatePVP(frame, unit) if UnitIsPVPFreeForAll(unit) then frame.pvp:SetTexture("Interface\\TARGETINGFRAME\\UI-PVP-FFA"); @@ -266,7 +270,7 @@ local function updatePVP(frame, unit) faction = "Horde"; end end - frame.pvp:SetTexture("Interface\\TARGETINGFRAME\\UI-PVP-"..faction); + frame.pvp:SetTexture(pvpIcons[faction]); frame.pvp:Show(); else frame.pvp:Hide();