View Single Post
07-28-10, 11:34 AM   #6
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
Originally Posted by Xruptor View Post
Example, a casting bar is positioned to be under the pet frame. However a user used oUF_MovableFrames to move the pet frame somewhere else. Now there is a huge gap between where the pet frame was and the casting bar is currently located. In such cases the logical solution would be to move the casting bar up. You could do a current location vrs default position check, yet this would open a can of worms in terms of relative positioning on other frames. IE frame positioning based off the location of another frame.
Sorry, I don't understand your example... You want to set the position of a castbar relative to the pet-frame, but you use absolute values in the style of
Code:
castbar:SetPoint('CENTER', UIParent, 'CENTER', x, y)
?

Then why not simply set the position of this castbar relative to the petframe?
Code:
castbar:SetPoint('CENTER', 'PetFrame', 'CENTER', x, y)
You will have to insert a fitting name where I put 'PetFrame', but this style of positioning will do the trick, since the castbar will be moved with the petframe.
  Reply With Quote