View Single Post
08-05-14, 10:11 AM   #7
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Or this:
Lua Code:
  1. for _, method in pairs({'RandomBGButton', 'Arena1Button', 'Arena2Button'}) do
  2.     local bu = BonusFrame[method]
  3.     bu.SelectedTexture:SetDrawLayer("BACKGROUND")
  4.     bu.SelectedTexture:SetTexture(r, g, b, .2)
  5.     bu.SelectedTexture:SetAllPoints()
  6. end

I do exactly this for disabling the textures for the stock OverrideActionBar in my action bar addon:
https://github.com/p3lim-wow/pAction...rd.lua#L58-L75

Last edited by p3lim : 08-05-14 at 10:14 AM.
  Reply With Quote