Thread Tools Display Modes
08-11-10, 04:11 PM   #81
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
specifically, if your HP tags ain't updating you need to register that tag to:

Code:
"UNIT_HEALTH UNIT_MAXHEALTH"
event above

i.e.

Code:
oUF.TagEvents["AfterHealth"] = "UNIT_HEALTH UNIT_MAXHEALTH"
  Reply With Quote
08-12-10, 05:05 AM   #82
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
I got it to work, thanks again all
  Reply With Quote
08-12-10, 02:51 PM   #83
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
End result :
  Reply With Quote
08-12-10, 03:48 PM   #84
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
Your pet's target name is way too long for the frame, you should check it.

You could use that (credit tekkub if i remember well, if not sorry ) :

(string.len(name) > 15) and gsub(name, '%s?(.)%S+%s', '%1. ')

for example the result with the Heroic Target Dummy would be :

H. T. Dummy

Just a suggestion
  Reply With Quote
08-12-10, 04:30 PM   #85
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Originally Posted by Rostok View Post
Your pet's target name is way too long for the frame, you should check it.

You could use that (credit tekkub if i remember well, if not sorry ) :

(string.len(name) > 15) and gsub(name, '%s?(.)%S+%s', '%1. ')

for example the result with the Heroic Target Dummy would be :

H. T. Dummy

Just a suggestion
Or, you could set left and right anchor points on the fontstring. Then any text that goes beyond the anchor limits will become automatically truncated.
  Reply With Quote
08-13-10, 10:09 AM   #86
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Had it reduced before, but i since it applyed to every frame.. :P so i saw only the half name on the target name i currently use this
Code:
name:SetWidth(300)
  Reply With Quote
08-13-10, 10:16 AM   #87
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Well, fixed..



well, anyways anyone know how to make mana/hp text classcolor, atm just changed the color of mana/hp, and i tryed but wasnt really succesful.
  Reply With Quote
08-13-10, 10:34 AM   #88
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
You already do what is needed for colouring the unit name. Check how you are using [raidcolor] tag in other places and add it to your HP and mana tags.
  Reply With Quote
08-13-10, 10:48 AM   #89
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
yeah, trying that atm, doesnt seem to work, tryed like
Code:
self:Tag(hp.value, '[raidcolor]')
with "ppp" all of them self.ppp but doesnt seem to work
  Reply With Quote
08-13-10, 10:56 AM   #90
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Code:
self:Tag(hpp, '[raidcolor][yourhealthtag]')
change 'yourhealthtag' to whatever your tag is called
  Reply With Quote
08-13-10, 10:59 AM   #91
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
oh, i made an other one for the class color hehe :P
  Reply With Quote
08-13-10, 11:10 AM   #92
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
the health works, but not the mana =(
  Reply With Quote
08-13-10, 11:12 AM   #93
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
I guess i just keep the mana standard, i dont wanna bother you more well anyways thanks for the help again!
  Reply With Quote
08-13-10, 11:30 AM   #94
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Within your power tag it is specifically colouring the text to the power type, this will override the colour set by using [raidcolor] beforehand.
  Reply With Quote
08-13-10, 01:49 PM   #95
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
so you want me to remove this?
Code:
oUF.Tags['Afterpower'] = function(unit)
	local power = UnitPower(unit)
	if(power > 0 and not UnitIsDeadOrGhost(unit)) then
		local _, type = UnitPowerType(unit)
		local colors = _COLORS.power <-----?
		return ('%s%d|r'):format(Hex(colors[type] or colors['RUNES']), power)
	end
end
oUF.TagEvents['Afterpower'] = oUF.TagEvents.missingpp
and this
Code:
local colors = setmetatable({
	power = setmetatable({
		['MANA'] = {.31,.45,.63},
		['RAGE'] = {.69,.31,.31},
		['FOCUS'] = {.71,.43,.27},
		['ENERGY'] = {.65,.63,.35},
	}, {__index = oUF.colors.power}),
}, {__index = oUF.colors})
i guess?
  Reply With Quote
08-13-10, 01:53 PM   #96
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
no, you just need to trim out some stuff

Code:
oUF.Tags['Afterpower'] = function(unit)
	local power = UnitPower(unit)
	if(power > 0 and not UnitIsDeadOrGhost(unit)) then
		return power
	end
end
oUF.TagEvents['Afterpower'] = oUF.TagEvents.missingpp
  Reply With Quote
08-13-10, 02:33 PM   #97
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Thanks! it works
  Reply With Quote
08-13-10, 02:35 PM   #98
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Screenie

  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Help with 1.4 oUF


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