WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   ComboPointPlayerFrame SetPoint (https://www.wowinterface.com/forums/showthread.php?t=58516)

3njoi 01-02-21 02:36 PM

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.
Quote:

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?

3njoi 01-03-21 02:53 AM

This macro works in game but doesn't work when I use it inside my addon no clue why
Lua Code:
  1. /run TargetFrameSpellBar:ClearAllPoints();TargetFrameSpellBar:SetPoint("CENTER",C_NamePlate.GetNamePlateForUnit("player"),"CENTER",0,47);TargetFrameSpellBar.SetPoint = function() end


All times are GMT -6. The time now is 01:06 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI