WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Shadow orb's problem (https://www.wowinterface.com/forums/showthread.php?t=44859)

azsh 10-20-12 03:01 PM

Shadow orb's problem
 
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:
  1. local ShadowOrbs = {}
  2.     if(class == 'PRIEST' and unit == 'player') then
  3.     local orbxn = self:CreateTexture(nil, 'BACKGROUND')
  4.     orbxn:SetTexture[[Interface\PlayerFrame\Priest-ShadowUI]]
  5.     orbxn:SetTexCoord(0.615625,0.40625,0.615625,0.0234375,0.0078125,0.40625,0.0078125,0.0234375)
  6.     orbxn:SetSize(152*1.4,49*1.4)
  7.     orbxn:SetPoint("BOTTOM", self.Health, "BOTTOM", 0, 26.4)
  8.    
  9.     for i = 1, 3 do
  10.         local orb = self:CreateTexture(nil, 'OVERLAY')
  11.         orb:SetTexture[[Interface\PlayerFrame\Priest-ShadowUI]]
  12.         orb:SetTexCoord(0.45703125, 0.60546875, 0.4375, 0.73437500)
  13.         orb:SetSize(38*1.4, 38*1.4)
  14.         orb:SetPoint("BOTTOM", self.Health, "BOTTOM", -88+45*i, 26.4)
  15.         bg = self:CreateTexture(nil, 'OVERLAY')
  16.         bg:SetTexture[[Interface\PlayerFrame\Priest-ShadowUI]]
  17.         bg:SetTexCoord(0.25, 0.640625, 0.25, 0.4375, 0.04296875, 0.640625 , 0.04296875, 0.4375)
  18.         bg:SetSize(53*1.4, 26*1.4)
  19.         bg:SetPoint("BOTTOM", self.Health, "BOTTOM", -88+45*i, 26.4)   
  20.         ShadowOrbs[i] = orb
  21.     end
  22.     self.ShadowOrbs = ShadowOrbs
  23.     end


All times are GMT -6. The time now is 10:17 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI