Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-25-11, 03:19 PM   #5
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Originally Posted by Sniffles View Post
Code:
for i = 1,MAX_BOSS_FRAMES do
	local t_boss = _G["Boss"..i.."TargetFrame"]
	t_boss:UnregisterAllEvents()
	t_boss.Show = F.dummy
	t_boss:Hide()
	_G["Boss"..i.."TargetFrame".."HealthBar"]:UnregisterAllEvents()
	_G["Boss"..i.."TargetFrame".."ManaBar"]:UnregisterAllEvents()
end
oUF does this for you, and it does a better job at it.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Adding Boss Frames, how difficult is it?


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