Thread Tools Display Modes
08-26-09, 08:05 PM   #21
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
cause that function's being passed one argument instead of two.

http://wowprogramming.com/docs/api/UnitIsFriend
__________________
"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

  Reply With Quote
08-26-09, 08:27 PM   #22
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
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.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
08-26-09, 08:30 PM   #23
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
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.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
08-26-09, 08:43 PM   #24
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
also follow,trade,whisper and invite should not show when targeting self.

also the aggro art works the only problem is it starts off on first load on. needs to have some sort of default to load hidden.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]

Last edited by Grimsin : 08-26-09 at 08:51 PM.
  Reply With Quote
08-26-09, 09:02 PM   #25
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
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.

here is the new code

http://pastey.net/123461
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
08-27-09, 11:13 AM   #26
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
http://pastey.net/123489-2ohu:123461-gk60

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.
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
08-27-09, 02:32 PM   #27
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
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.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Tooltips and XML

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off