View Single Post
09-18-09, 07:40 AM   #12
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
My frame has no defining attributes at all, and isn't a child of anything
If you know when it's created you can find it.

also you can still find frames with no parents via EnumerateFrames().

What I use in StatusQuo:
lua Code:
  1. local lastframe -- the last frame we met.
  2. local otype
  3. local function TextureStatusBars(f)
  4.     local f = EnumerateFrames(f)
  5.     while f do
  6.         otype = f:GetObjectType()
  7.         if otype ~= "Button" then
  8.             if otype == "StatusBar" then
  9.                 SetTexture(f)
  10.                 f.SetStatusBarTexture = dummy
  11.             end
  12.             lastframe = f
  13.         end
  14.         f = EnumerateFrames(f)
  15.     end
  16. end
  17.  
  18. local function TextureNewStatusBars()
  19.     TextureStatusBars(lastframe)
  20. end
  Reply With Quote