Thread Tools Display Modes
12-11-10, 08:32 AM   #1
Teliko
A Fallenroot Satyr
 
Teliko's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2009
Posts: 24
Exclamation Party Targets

I used to use an addon which I loved called qPartyTarget which showed the target of every party member beside their portrait. This seems to be totally unfunctional for cata and I don't seem to be able to find a working alternative.

Does anyone know where I can find one, or capable of updating the code to make it compatible for cata? Would be greatly appreciated.
  Reply With Quote
12-11-10, 01:15 PM   #2
lordkarthas
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 35
A lot of unit frame mods provide this functionality. I like X-Perl in particular because it is easy to set up but has lots of options.
  Reply With Quote
12-11-10, 02:04 PM   #3
Teliko
A Fallenroot Satyr
 
Teliko's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2009
Posts: 24
Aye I was aware xperl had the function, but I was hoping to get my hands on one as simple as qPT that wouldn't actually alter the style of my current party frames or anything, just simply add each members target.
  Reply With Quote
12-13-10, 03:23 AM   #4
Tadedra
A Cliff Giant
Join Date: Dec 2010
Posts: 70
Shoot, I used to love this one too but I've been using the Raid frame lately vs the original party style. I hope they get it up and running for you. Good luck.

I have no addon coding skill :sad face:
  Reply With Quote
12-13-10, 04:11 AM   #5
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
  1. I believe you'd need to change every line that contains 'this' to 'self'. It was deprecated before but you could still use it. Now it is required to use 'self'.
  2. Also, argn is no longer supported. wherever you see argn, you will need to replace it with whatever the event arguments are.

    It seems to me sometimes it uses self, sometimes it uses this. Sometimes it uses argn, sometimes it uses function(self, event, unit).
  3. Every call of getglobal() needs to be replaced with _G[]
  4. Some functions defined by blizzard that previously required nothing as parameter now require the use of 'self'. A good example is UnitFrameOnEnter.


For example, in TargetPartyFrameTemplates, at the bottom:
Code:
<Scripts>
			<OnLoad>
				local id = self:GetID();
				self.debuffCountdown = 0; 
				self.numDebuffs = 0;
				self.noTextPrefix = 1;
				local prefix = "TargetPartyMemberFrame"..id;
				UnitFrame_Initialize(self, "party"..id.."target",  _G[prefix.."Name"], _G[prefix.."Portrait"],
					  _G[prefix.."HealthBar"], _G[prefix.."HealthBarText"], 
					  _G[prefix.."ManaBar"], _G[prefix.."ManaBarText"],
					  _G[prefix.."threatIndicator"], _G[prefix.."threatFeedbackUnit"], _G[threatNumericIndicator] );
				SetTextStatusBarTextZeroText(_G[prefix.."HealthBar"], DEAD);
				TargetPartyMemberFrame_OnLoad(self);
			</OnLoad>
			<OnEvent>
				TargetPartyMemberFrame_OnEvent(self,event,unit);
			</OnEvent>
			<OnEnter>
				UnitFrame_OnEnter(self);
				TargetPartyMemberBuffTooltip:SetPoint("TOPLEFT", self, "TOPLEFT", 47, -30);
				TargetPartyMemberBuffTooltip_Update(self);
			</OnEnter>
			<OnLeave>
				UnitFrame_OnLeave(self);
				TargetPartyMemberBuffTooltip:Hide();
			</OnLeave>
			<OnUpdate>
				TargetPartyMemberFrame_OnUpdate(self, elapsed);
			</OnUpdate>
This is coded without testing, so it may contain errors. Also I did not touch the functions in any way.

I don't have an active subscription at the moment else I'd fix it up

Last edited by ravagernl : 12-13-10 at 04:14 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » 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