Hello. I'm trying to recreate blizzard Shadow orbs using ouf plugin and i have problem with one texture i don't no how to force it to work(hide) with orb's maybe someone can help me ?
orbxn - background texture
orb - working orbs
bg - not working(i mean not hiding) background
http://i.imgur.com/8ICRD.jpg
http://i.imgur.com/8hnyS.jpg
http://i.imgur.com/qLRSD.jpg
http://imgur.com/rLOOt
http://i.imgur.com/T8m40.jpg
Lua Code:
local ShadowOrbs = {}
if(class == 'PRIEST' and unit == 'player') then
local orbxn = self:CreateTexture(nil, 'BACKGROUND')
orbxn:SetTexture[[Interface\PlayerFrame\Priest-ShadowUI]]
orbxn:SetTexCoord(0.615625,0.40625,0.615625,0.0234375,0.0078125,0.40625,0.0078125,0.0234375)
orbxn:SetSize(152*1.4,49*1.4)
orbxn:SetPoint("BOTTOM", self.Health, "BOTTOM", 0, 26.4)
for i = 1, 3 do
local orb = self:CreateTexture(nil, 'OVERLAY')
orb:SetTexture[[Interface\PlayerFrame\Priest-ShadowUI]]
orb:SetTexCoord(0.45703125, 0.60546875, 0.4375, 0.73437500)
orb:SetSize(38*1.4, 38*1.4)
orb:SetPoint("BOTTOM", self.Health, "BOTTOM", -88+45*i, 26.4)
bg = self:CreateTexture(nil, 'OVERLAY')
bg:SetTexture[[Interface\PlayerFrame\Priest-ShadowUI]]
bg:SetTexCoord(0.25, 0.640625, 0.25, 0.4375, 0.04296875, 0.640625 , 0.04296875, 0.4375)
bg:SetSize(53*1.4, 26*1.4)
bg:SetPoint("BOTTOM", self.Health, "BOTTOM", -88+45*i, 26.4)
ShadowOrbs[i] = orb
end
self.ShadowOrbs = ShadowOrbs
end