I am trying to move the Buff Frame due to a resized minimap.
Code:
TemporaryEnchantFrame:ClearAllPoints();
TemporaryEnchantFrame:SetPoint("TOPRIGHT", "MinimapBorderTop","TOPLEFT", 12, -25);
I can get this to work whenever the minimap is resized or when you change zones, however I am not successful in getting it to move to the proper position upon initially entering the game with any character.
What event would I want to tie this code into? I tried ADDON_LOADED and PLAYER_ENTERING_WORLD with seemingly no success but I am new to the addon writing world so I could have easily missed something.
Thanks for the help ahead of time!