View Single Post
01-02-21, 02:36 PM   #1
3njoi
A Murloc Raider
Join Date: Dec 2020
Posts: 5
ComboPointPlayerFrame SetPoint

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:
  1. UIPARENT_MANAGED_FRAME_POSITIONS.ComboPointPlayerFrame = nil
  2. ComboPointPlayerFrame.Background:Hide()
  3. ComboPointPlayerFrame:HookScript("OnUpdate",function(self) self:ClearAllPoints() self:SetPoint("CENTER",C_NamePlate.GetNamePlateForUnit("player"),0,-15) self:SetScale(0.8) end)
  4. ComboPointPlayerFrame:HookScript("OnHide",function(self) self:Show() end)

Anyone knows how to fix this?
  Reply With Quote