Quantcast WoWInterface - View Single Post - Making my own BossFrames with XML - Need help with show states
View Single Post
01-30-18, 05:27 AM   #5
A Fallenroot Satyr
Join Date: May 2007
Posts: 23
Originally Posted by Vrul View Post
You can run this after your XML:
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))
Running this shows them okay but without a TargetFrame_Update() they look like this (the bottom ones)

Also, when two bosses are pulled at the same time it throws another error.

1x [ADDON_ACTION_BLOCKED] AddOn '!mUI' tried to call the protected function 'Boss1TargetFrame:Show()'.
  Reply With Quote