View Single Post
08-19-15, 04:48 PM   #8
elcius
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Sep 2011
Posts: 75
there is no clean way to access a local anonymous frame.
Code:
local hooked = {};

-- run on START_LOOT_ROLL
local frames = {GetFramesRegisteredForEvent('CANCEL_LOOT_ROLL')};
for i,frame in pairs(frames) do
	if (not hooked[frame]) and frame.status and frame.status:GetStatusBarTexture():match('teksLoot') then
		-- hook frame, or just apply changes here once.
		hooked[frame] = true;
	end
end
  Reply With Quote