View Single Post
11-14-11, 11:02 PM   #1
stako
A Deviate Faerie Dragon
 
stako's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 11
Draggable frames maintaining relative frames?

So's I've created a little cooldown icon for each of the blizzard default arena unitframes. It tracks the cooldown of each player's PVP trinket. By default I have the trinket icon sitting a little bit to the right of the unitframe:

Code:
trinket:SetPoint("LEFT", ArenaEnemyFrame1, "RIGHT", 2, -2)
I've also made it draggable. But after dragging it, the icon loses its relativity to ArenaEnmyFrame1 and is instead relative to UIParent. Is there any way to circumvent this? I have the arena frames draggable too, so I want the trinket icon to follow the arena frames when they're dragged, but also allow users to move the trinket icon itself so it doesn't always have to be to the right of the arena frame.

Thanks.
  Reply With Quote