Thread Tools Display Modes
10-20-12, 03:01 PM   #1
azsh
A Fallenroot Satyr
Join Date: May 2010
Posts: 21
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
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Shadow orb's problem

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off