I'm trying to anchor default combo points to the personal resource bar. Why? Cause they have nicer animations than the default prb combo points :P. It seems to work but I keep getting this error.
Action[SetPoint] failed because[SetPoint would result in anchor family connection]: attempted from: ComboPointPlayerFrame:SetPoint.
|
This is the code I'm using.
Lua Code:
UIPARENT_MANAGED_FRAME_POSITIONS.ComboPointPlayerFrame = nil
ComboPointPlayerFrame.Background:Hide()
ComboPointPlayerFrame:HookScript("OnUpdate",function(self) self:ClearAllPoints() self:SetPoint("CENTER",C_NamePlate.GetNamePlateForUnit("player"),0,-15) self:SetScale(0.8) end)
ComboPointPlayerFrame:HookScript("OnHide",function(self) self:Show() end)
Anyone knows how to fix this?