Thread Tools Display Modes
12-05-08, 10:26 PM   #1
jonathon
A Chromatic Dragonspawn
 
jonathon's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 179
Party Targets?

I use grid for my party frames and my raid frames, and I do not use a personal UF, but a hud Underhood to be exact.

What I am looking for is a simple addon that is nothing more than a simple way to see who in your party is targeting who. This would include the Health of the target. That is all that I would need.

Does anyone know of a good addon that would do this? I have looked at Ouf, but nothing for party targets there.
__________________
hackers always learn.. thats why there are security patches.
  Reply With Quote
12-05-08, 10:56 PM   #2
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
I do not know of an addon, but it should be fairly easy to make.

All you need to do is this:
Code:
local pn1 = CreateFontstring("PartyName1", "ARTWORK", "GameFontNormal")
local ph1 = CreateFontstring("PartyHealth1", "ARTWORK", "GameFontNormal")

pn1:SetText(UnitName("party1target"))
ph1:SetText(UnitHealth("party1target"))

if PartyMemberFrame1:IsShown() then
     pn1:SetPoint("RIGHT", PartyMemberFrame1, "LEFT", 15, 0)
     ph1:SetPoint("BOTTOM", pn1, "BOTTOM", 0, -5)
else
     return
end
This is the code for just one of the party members (the first one). If you dont have a party member, it won't show.

pn1 = Your first party member's target's name.
ph1 = Your first party member's target's health.

I hope this helps. I might have forgotten something because it is late here.

P.S.: If you just do not get it at all, I can make it for you tomorrow.
__________________
Never be satisfied with satisfactory.

Last edited by Cralor : 12-05-08 at 10:58 PM.
  Reply With Quote
12-06-08, 08:44 AM   #3
Psoewish
A Scalebane Royal Guard
 
Psoewish's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 447
You could get a seperate unitframe addon and only make it display partytarget frames.

oUF would work like a charm for this purpose.
  Reply With Quote
12-06-08, 11:39 AM   #4
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
Actually, you could have them both in the same fontstring if you'd like, too.

Code:
local pt1 = CreateFontstring("PartyTarget1", "ARTWORK", "GameFontNormal")

pt1:SetText(UnitName("party1target")..": "..UnitHealth("party1target"))

if PartyMemberFrame1:IsShown() then
     pt1:SetPoint("RIGHT", PartyMemberFrame1, "LEFT", 15, 0)
end
This will show: Bob: 10356

You'll have to make 3 more for each of the party members.

I hope this helps.
__________________
Never be satisfied with satisfactory.
  Reply With Quote
12-06-08, 06:47 PM   #5
jonathon
A Chromatic Dragonspawn
 
jonathon's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 179
thanks guys... I'll check out these suggestions and see what I get.
__________________
hackers always learn.. thats why there are security patches.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Party Targets?


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