Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-21-14, 09:00 AM   #21
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
So I'm Still getting errors with boss frames,

So I was wondering would this be the correct way to adjust the scale of a boss frame?

Code:
		local BossFrame = CreateFrame("Frame");
		BossFrame:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT")
		BossFrame:SetScript("OnEvent",
			for i = 1, MAX_BOSS_FRAMES do
				local bossFrame = "Boss"..i.."TargetFrame"
				_G[bossFrame]:SetScale(db.unitframes.boss.scale);	
			end;
		end)
Because as far as "Boss Frame" this is the only thing I have in my code that directly points to a boss frame.

Thanks
Coke
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Addon_action_blocked


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