View Single Post
01-17-12, 04:16 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I don't have time to read through the code right now, but you'll still need to spawn a separate frame for each unit (player and target), each with the elements you want (health bar for target, health bar and power bar for player), and position the target frame so it appears to be part of the player frame.

You can't reliably resize the player frame itself (when you have or don't have a target) but you can make the background extend beyond the bottom of the frame, place the target frame over the "extra" background, and then resize the player frame's health bar only to cover it up when you don't have a target.
  Reply With Quote