Thread Tools Display Modes
06-08-09, 02:49 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Pet combopoints (vehicle)

Does anyone have a working combopoint-display for the vehicle-dragons which he is willing to share?

Currently I am using this to display the number of combopoints for player.
Code:
  local function d3o2_createComboPoints(self,unit)
    self.CPoints = SetFontString(self.Health, d3font, 24, "THINOUTLINE")
    self.CPoints:SetPoint("LEFT", self.Name, "RIGHT", 5, -1)
    self.CPoints:SetTextColor(1, .5, 0)
    self.CPoints.unit = "player"
  end
Vehicle swap is active. I am calling this function where I am creating my target style.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 06-08-09 at 02:52 AM.
  Reply With Quote
06-09-09, 08:09 AM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
I registered the following function to UNIT_COMBO_POINTS, it works for me

Code:
local function updateCombo(self, event, unit)
	if(unit == PlayerFrame.unit) then
		self.CPoints.unit = unit
	end
end
  Reply With Quote
06-10-09, 12:45 PM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Thanks alot p3lim.

I added something to the condition to make it only be called when the unit changed.

Code:
  local function updateCPoints(self, event, unit)
  	if(unit == PlayerFrame.unit) and (unit ~= self.CPoints.unit) then
  		self.CPoints.unit = unit
--  		am("ding "..unit)
  	end
  end
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
06-10-09, 04:31 PM   #4
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by zork View Post
Thanks alot p3lim.

I added something to the condition to make it only be called when the unit changed.

Code:
  local function updateCPoints(self, event, unit)
  	if(unit == PlayerFrame.unit) and (unit ~= self.CPoints.unit) then
  		self.CPoints.unit = unit
--  		am("ding "..unit)
  	end
  end
thats not a half bad idea
  Reply With Quote
06-12-09, 12:40 AM   #5
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
You might want to post a feature request on this. I tend to forget it :3.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Pet combopoints (vehicle)


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