Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-16-19, 12:09 PM   #1
glaaod
A Murloc Raider
Join Date: Aug 2019
Posts: 4
Moving default BuffFrame

Hi,

I'm in the process of making a simple addon to change the placement of the default UI frames.

Most frames can be moved just fine with just a few lines of basic code. Example:

Code:
PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint("CENTER", UIParent, "CENTER", -117, -309)
PlayerFrame.SetPoint = function() end
PlayerFrame:SetUserPlaced(true)
(The PlayerFrame and TargetFrame need the additional line at the end to work, otherwise everything seems to only need the first 3 lines.)

The only thing I'm having trouble with is the BuffFrame. You can move it just fine with the approach above, however, it seems to break target of target functionality, and I can not figure out why.
I have tried to add the "SetUserPlaced(true)" and a few other things but nothing seems to work.

Any help would be appreciated.
Thanks!
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Moving default BuffFrame


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off