View Single Post
07-25-16, 11:19 PM   #6
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
Just tried

/run CastingBarFrame:ClearAllPoints(); CastingBarFrame:SetPoint("CENTER", UIParent, "CENTER", 0, 0)

Edit and after a /reload, /run CastingBarFrame:ClearAllPoints(); CastingBarFrame:SetPoint("CENTER", UIParent)

Both worked.

It might be a matter of when you're running your code. If it's during ADDON_LOADED or just as your .lua files are loading, Blizzard may be resetting the bar later in the load process like OnEvent for the Totem frame. PlayerFrame_AdjustAttachments() gets called from various places depending on class.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 07-26-16 at 01:16 AM.
  Reply With Quote