Also a better way to catch all these is probably:
lua Code:
local TEXTURE = "Interface\\AddOns\\EVUI\\FrameBackground"
local UnitFrames = {
PlayerFrame,
PetFrame,
TargetFrame,
TargetFrameToT,
FocusFrame,
FocusFrameToT,
PartyMemberFrame1,
PartyMemberFrame2,
PartyMemberFrame3,
PartyMemberFrame4,
}
local UnitFrameRegions = {
"healthBar",
"myHealPredictionBar",
"otherHealPredictionBar",
"healAbsorbBar",
"totalAbsorbBar",
"manaBar",
"myManaCostPredictionBar",
"spellbar",
}
local OtherStatusBars = {
CastingBarFrame,
MirrorTimer1StatusBar,
MirrorTimer2StatusBar,
MirrorTimer3StatusBar,
}
for _, frame in next, UnitFrames do
for _, region in next, UnitFrameRegions do
local bar = frame[region]
if bar and bar.SetStatusBarTexture then
bar:SetStatusBarTexture(TEXTURE)
bar:GetStatusBarTexture():SetHorizTile(true)
elseif bar and bar.SetTexture then
bar:SetTexture(TEXTURE)
bar:SetHorizTile(true)
end
end
end
for _, bar in next, OtherStatusBars do
bar:SetStatusBarTexture(TEXTURE)
bar:GetStatusBarTexture():SetHorizTile(true)
end