View Single Post
01-19-14, 04:12 PM   #3
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Not that it eliminates the distortion, but you can get a result closer to your example by fiddling with the numbers and changing the height..
Lua Code:
  1. local tx = UIParent:CreateTexture(nil, 'BACKGROUND')
  2. tx:SetSize(80, 80)
  3. tx:SetPoint('CENTER')
  4. tx:SetTexture(0,0.8,0.2,0.5)
  5.  
  6. local icon = UIParent:CreateTexture(nil, 'OVERLAY')
  7. icon:SetTexture('interface/icons/ability_ambush', true)
  8. icon:SetPoint('CENTER', tx)
  9. icon:SetSize(80, 120)
  10. icon:SetTexCoord(0, -0.25, -0.25, 1.25, 1, -0.25, 1.25, 1.25)
  Reply With Quote