View Single Post
10-24-08, 07:09 AM   #1
Csalago
A Kobold Labourer
 
Csalago's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 1
Moving the Buff Frame

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!
  Reply With Quote