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");
faction = "Horde";
end
end
- frame.pvp:SetTexture("Interface\\TARGETINGFRAME\\UI-PVP-"..faction);
+ frame.pvp:SetTexture(pvpIcons[faction]);
frame.pvp:Show();
else
frame.pvp:Hide();
local healthColor = Settings.HealthColor;
local shieldColor = Settings.ShieldColor;
local shieldhlColor = Settings.ShieldhlColor;
-local healabsorbColor = Settings.HealabsorbColor;
local width, height = Settings.Pet.Width, Settings.Pet.Height;
local anchorX, anchorY = Settings.Pet.AnchorX, Settings.Pet.AnchorY;
-- placeholders with visible values when error happens
local healthColor = Settings.HealthColor;
local shieldColor = Settings.ShieldColor;
local shieldhlColor = Settings.ShieldhlColor;
-local healabsorbColor = Settings.HealabsorbColor;
local width, height = Settings.Player.Width, Settings.Player.Height;
local anchorX, anchorY = Settings.Player.AnchorX, Settings.Player.AnchorY;
-- placeholders with visible values when error happens
local healthColor = Settings.HealthColor;
local shieldColor = Settings.ShieldColor;
local shieldhlColor = Settings.ShieldhlColor;
-local healabsorbColor = Settings.HealabsorbColor;
local width, height = Settings.Target.Width, Settings.Target.Height;
local anchorX, anchorY = Settings.Target.AnchorX, Settings.Target.AnchorY;
-- placeholders with visible values when error happens