Changing UnitFrame Position When Entering and Exiting Vehicles
Hey guys!
I have a small problem that I'm not sure how to solve. I've written a very simple addon that adjusts the position of the default unitframes based on sliders in a preference pane. It works wonderfully under normal use, but as soon as I use a vehicle, things get screwy - the frame and its background shift to different places on the screen and are generally messy.
I am aware that simply doing setPoint: on the frames again will fix this. The problem that I am trying to solve is figuring out how to do that AFTER the unitframe has finished the vehicle transition animation.
Any ideas? I've considered maybe using a timer, but haven't tried it for fear of its reliance on FPS killing the method's reliability.
Thanks!
|