View Single Post
04-18-11, 12:23 PM   #3
bjp91
A Defias Bandit
 
bjp91's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2009
Posts: 3
Originally Posted by Chibi View Post
You might try using one of the events related to entering the world or addons being loaded. Trying to do it on-update will try to do it every frame, and throw errors when it fires in combat for frames that can't be moved then.
Yeah the ideal way to set up this would be

Code:
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", function(self, event)
	PlayerFrame:SetScale(1.1)
	PetFrame:SetScale(1.1)
	FocusFrame:SetScale(1.1)
	TargetFrame:SetScale(1.1)
	PlayerFrame:ClearAllPoints() 
	PlayerFrame:SetPoint("CENTER", -250, -150)
	TargetFrame:ClearAllPoints() 
	TargetFrame:SetPoint("CENTER", 250, -150)
	FocusFrame:ClearAllPoints() 
	FocusFrame:SetPoint("CENTER", -500, -150)
end)
  Reply With Quote