Quantcast WoWInterface - View Single Post - Making my own BossFrames with XML - Need help with show states
View Single Post
01-29-18, 09:48 PM   #4
Vrul
A Frostmaul Preserver
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 292
You can run this after your XML:
Code:
for id = 1, MAX_BOSS_FRAMES do
	local frame = _G[("mBoss%uTargetFrame"):format(id)]
	if frame then
		RegisterStateDriver(frame, "visibility", ("[@boss%u,exists] show; hide"):format(id))
	end
end
  Reply With Quote