__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
alright i fixed that by making that read "player","target" it does not error on load but still no buttons and aggro art is on all the time. fixing the placement of the target cave. i think that the way the xml hooks it to duf vs the way it hooks using lua makes the offsets different? maybe? it is hooked to the duf target frame properly but does not position the same.
figured that out to. or to some degree. their is missing if's on the buttons. the inspect button should show up when targeting enemys and so should the gtip button. gtip icon should show up ALL the time. also the party icon should hide when the person you target is in your group or an enemy. if possible id like to make it check if the person is in a group at all that way it does not appear if the person is in someone elses group to.
Used pasty to paste the code again with the changes i made so far. buttons need fixing still as far as show and hide and same with the aggro part... needs some default to hidden line added or something.
The DUF-art was my mistake, didn't see that you anchored it to UIParent, should be fixed now. I've also rewritten the show/hide-function for the buttons to your liking, should be much easier to understand and modify by yourself now. Aggro-indicators just needed a :Hide() on loading.
works perfect. well minor modifications but now its perfect the gtip button did not appear all the time like it should even when targeting npc's and mobs i fixed that though.