Originally Posted by Chibi
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)