player, focus, target, targettarget and all visible buffs/debuffs
oUF P3lim
Description:
oUF P3lim is a layout plug-in made for the UnitFrame framework oUF.
It is required that you have this addon updated at all times to make everything work as it should.
You can download oUF by clicking on the link located under the "Download" button on the right.
oUF P3lim is just another layout, specifically customized for my own needs.
It's a personal layout, so don't get your hopes up when you want a new feature for it.
This layout is written to be easily read-able and be a good base to start your own layout on.
If you intend to do this, please give me some credit for all my work.
Features:
Supports for the following units
Player
Target
Pet/Vehicle
TargetTarget
Focus
As it doesn't include any party/group units, I suggest you get a different layout (or a different addon) for that job.
Notes:
This layout is created for my own need, and is not an addon for every average user to use.
It has no configurations and if you want to change anything about the layout you will require some knowledge with Lua.
Originally posted by Soulcleaver i tried but still dosn't work here the whole code of the UF's im using
Code:
oUF.Tags['[colorinfo]'] = function(unit)
if(UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit)) then
return Hex(colors.tapped)
elseif(not UnitIsConnected(unit)) then
return Hex(colors.disconnected)
elseif(not UnitIsPlayer(unit)) then
return Hex(UnitSelectionColor(unit))
else
return Hex(unpack(oUF.colors.class[select(2, UnitClass(unit))]))
end
end
hope u find my prob bec i get error when i target something :/
ty
Why did you suddenly bring in a whole new function that had nothing to do with your issue?
Originally posted by p3lim Yeah Ive changed the code, only replace the line that I replaced, not the whole function.
Quote:
Originally posted by p3lim Yeah Ive changed the code, only replace the line that I replaced, not the whole function.
i tried but still dosn't work here the whole code of the UF's im using
Code:
oUF.Tags['[colorinfo]'] = function(unit)
if(UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit)) then
return Hex(colors.tapped)
elseif(not UnitIsConnected(unit)) then
return Hex(colors.disconnected)
elseif(not UnitIsPlayer(unit)) then
return Hex(UnitSelectionColor(unit))
else
return Hex(unpack(oUF.colors.class[select(2, UnitClass(unit))]))
end
end
hope u find my prob bec i get error when i target something :/
Originally posted by Soulcleaver hi im using the newest version of urs and i get this error when i use ur "classcolor" code when i target other than myself...
Yeah Ive changed the code, only replace the line that I replaced, not the whole function.
Originally posted by p3lim Ive decided to not put any mana values on target frame. Youre free to add a power tag to a custom layout ofcourse, but this layout is my personal style, and I dont add things I dont need
Namecolored names?
I guess you mean classcolored, but its quite simple:
At line 53 you find the following function
Code:
oUF.Tags['[colorinfo]'] = function(u)
if(UnitIsTapped(u) and not UnitIsTappedByPlayer(u)) then
return Hex(colors.tapped)
elseif(not UnitIsConnected(u)) then
return Hex(colors.disconnected)
elseif(not UnitIsPlayer(u)) then
return Hex(UnitSelectionColor(u))
else
return Hex(1, 1, 1)
end
end
change that to
Code:
oUF.Tags['[colorinfo]'] = function(u)
if(UnitIsTapped(u) and not UnitIsTappedByPlayer(u)) then
return Hex(colors.tapped)
elseif(not UnitIsConnected(u)) then
return Hex(colors.disconnected)
elseif(not UnitIsPlayer(u)) then
return Hex(UnitSelectionColor(u))
else
return oUF.Tags['[raidcolor]'](u)
end
end
hi im using the newest version of urs and i get this error when i use ur "classcolor" code when i target other than myself...
Originally posted by xcore hey p3lim,
thx for your fast answer.
i got the manadisplay working
but the classcoloring dont work for me ...
the problem is that i use an older version of the layout and cant use ur code :/
my colorfunktion is in the follow format:
Code:
local function UpdateInfoColor(self, unit)
if(UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit)) then
return self['SetTextColor'](self, unpack(oUF.colors.tapped))
elseif(UnitIsDead(unit) or UnitIsGhost(unit) or not UnitIsConnected(unit)) then
return self['SetTextColor'](self, unpack(oUF.colors.disconnected))
elseif(not UnitIsPlayer(unit)) then
return self['SetTextColor'](self, unpack({UnitSelectionColor(unit)} or oUF.colors.health))
else
return self['SetTextColor'](self, 1, 1, 1)
end
end
is it possible to get this work whit this version?
greez
replace '1, 1, 1' with 'unpack(oUF.colors.class[select(2, UnitClass(unit))])'
hey p3lim,
thx for your fast answer.
i got the manadisplay working
but the classcoloring dont work for me ...
the problem is that i use an older version of the layout and cant use ur code :/
my colorfunktion is in the follow format:
Code:
local function UpdateInfoColor(self, unit)
if(UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit)) then
return self['SetTextColor'](self, unpack(oUF.colors.tapped))
elseif(UnitIsDead(unit) or UnitIsGhost(unit) or not UnitIsConnected(unit)) then
return self['SetTextColor'](self, unpack(oUF.colors.disconnected))
elseif(not UnitIsPlayer(unit)) then
return self['SetTextColor'](self, unpack({UnitSelectionColor(unit)} or oUF.colors.health))
else
return self['SetTextColor'](self, 1, 1, 1)
end
end
is it possible to get this work whit this version?
greez
Originally posted by xcore hi - thx for that awesome style!
i have 2 little questions - is it possible to get namecolored names? the code you posted for this just colored the names in my classcolor
and last1 - is it possible to add mana from target (like 14000/16000 or just 14000). that would be amazing
thx and greez
Ive decided to not put any mana values on target frame. Youre free to add a power tag to a custom layout ofcourse, but this layout is my personal style, and I dont add things I dont need
Namecolored names?
I guess you mean classcolored, but its quite simple:
At line 53 you find the following function
Code:
oUF.Tags['[colorinfo]'] = function(u)
if(UnitIsTapped(u) and not UnitIsTappedByPlayer(u)) then
return Hex(colors.tapped)
elseif(not UnitIsConnected(u)) then
return Hex(colors.disconnected)
elseif(not UnitIsPlayer(u)) then
return Hex(UnitSelectionColor(u))
else
return Hex(1, 1, 1)
end
end
change that to
Code:
oUF.Tags['[colorinfo]'] = function(u)
if(UnitIsTapped(u) and not UnitIsTappedByPlayer(u)) then
return Hex(colors.tapped)
elseif(not UnitIsConnected(u)) then
return Hex(colors.disconnected)
elseif(not UnitIsPlayer(u)) then
return Hex(UnitSelectionColor(u))
else
return oUF.Tags['[raidcolor]'](u)
end
end
i have 2 little questions - is it possible to get namecolored names? the code you posted for this just colored the names in my classcolor
and last1 - is it possible to add mana from target (like 14000/16000 or just 14000). that would be amazing
thx and greez
Originally posted by ant1pathy Not looking to get rid of the Rune bar, looking to hide the Runic Power bar. Since I have the number there, I don't need the bar too.
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.
*Clicking the donate button above will take you to PayPal.com
*Clicking the donate button above will take you to Pledgie.com