Download
(505Kb)
Download
Updated: 10-21-20 07:11 AM
Pictures
File Info
Updated:10-21-20 07:11 AM
Created:02-03-11 11:34 AM
Downloads:97,908
Favorites:279
MD5:
Categories:Unit Mods, Combat Mods

KuiNameplates  Popular! (More than 5000 hits)

Version: 2.26.3e
by: Kesava [More]

Prettier nameplates.
Configurable through interface options (/knp or /kuinameplates).
I have a problem/question!
The classic release, previous versions and change logs can be found on Curse: https://www.curseforge.com/wow/addons/kuinameplates/files

Also see the FAQ in the Curse description: https://www.curseforge.com/wow/addons/kuinameplates

Thanks!

** See releases on GitHub or Curse for detailed change notes. Thanks! **
Post A Reply Comment Options
Unread 09-17-13, 04:26 PM  
poohkie
A Murloc Raider

Forum posts: 9
File comments: 49
Uploads: 0
the addon castbar isnt over-riding the default blizzard 1, so now my nameplates have the kui castbar, and these huge ugly ass blizzard cast bars.... how do i fix this?
Report comment to moderator  
Reply With Quote
Unread 09-18-13, 10:49 AM  
Laméricain
A Kobold Labourer

Forum posts: 1
File comments: 1
Uploads: 0
PvP

I am using KNP through Real UI. Does anyone know if there is an option to have KNP debuffs over all nameplates in PvP? Right now it is only showing debuffs over pets and only occasionally over players.
Report comment to moderator  
Reply With Quote
Unread 09-20-13, 04:43 PM  
xeleven
A Kobold Labourer

Forum posts: 0
File comments: 25
Uploads: 0
is there a way i can make the name text bigger?
Report comment to moderator  
Reply With Quote
Unread 09-21-13, 12:30 PM  
Midjet
A Fallenroot Satyr

Forum posts: 21
File comments: 5
Uploads: 0
Hey there, since 5.4 KNP isn't tracking corruption for me.

I'm using it as part of RealUI, so I'm not sure if that changes anything.
Report comment to moderator  
Reply With Quote
Unread 09-24-13, 06:57 AM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Re: PvP

Originally Posted by Laméricain
I am using KNP through Real UI. Does anyone know if there is an option to have KNP debuffs over all nameplates in PvP? Right now it is only showing debuffs over pets and only occasionally over players.
Auras will only display over your current target, and they'll linger over past targets. When it comes to nameplates, the API doesn't provide a reliable way to track auras on any unit except your target. It should be displaying on any unit you target - there's no option to make it only track them on pets or otherwise.

Originally Posted by xeleven
is there a way i can make the name text bigger?
Not as an option at the moment. You can edit core.lua, find this line:
Code:
        name      = 9,
(It should be on line 32) And edit that number to whatever size you'd like. Note that it may also affect some other text.

Originally Posted by Midjet
Hey there, since 5.4 KNP isn't tracking corruption for me.
It's tracking for me, but I don't actively play a warlock. What spec are you? Do you have any glyphs that modify corruption?

Originally Posted by poohkie
the addon castbar isnt over-riding the default blizzard 1, so now my nameplates have the kui castbar, and these huge ugly ass blizzard cast bars.... how do i fix this?
Could you disable any other addons and see if it still happens?


Thanks.
Report comment to moderator  
Reply With Quote
Unread 09-24-13, 09:15 AM  
Midjet
A Fallenroot Satyr

Forum posts: 21
File comments: 5
Uploads: 0
Re: Re: PvP

Originally Posted by Kesava
Originally Posted by Laméricain
I am using KNP through Real UI. Does anyone know if there is an option to have KNP debuffs over all nameplates in PvP? Right now it is only showing debuffs over pets and only occasionally over players.
Auras will only display over your current target, and they'll linger over past targets. When it comes to nameplates, the API doesn't provide a reliable way to track auras on any unit except your target. It should be displaying on any unit you target - there's no option to make it only track them on pets or otherwise.

Originally Posted by xeleven
is there a way i can make the name text bigger?
Not as an option at the moment. You can edit core.lua, find this line:
Code:
        name      = 9,
(It should be on line 32) And edit that number to whatever size you'd like. Note that it may also affect some other text.

Originally Posted by Midjet
Hey there, since 5.4 KNP isn't tracking corruption for me.
It's tracking for me, but I don't actively play a warlock. What spec are you? Do you have any glyphs that modify corruption?

Originally Posted by poohkie
the addon castbar isnt over-riding the default blizzard 1, so now my nameplates have the kui castbar, and these huge ugly ass blizzard cast bars.... how do i fix this?
Could you disable any other addons and see if it still happens?


Thanks.
I doesn't track in Demonology or Affliction, and I'm not running any glyphs that would change corruption. I think another person in the RealUI thread also asked about the same thing.
Report comment to moderator  
Reply With Quote
Unread 09-28-13, 12:57 PM  
ak_wow
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
CUSTOM_CLASS_COLORS

Hello,

Great addon so far

I tried to make the addon works with !classcolor but i know nothing about lua so i failed...

Under "enemy player, use default UI colour", i tried :

r = CUSTOM_CLASS_COLORS[select(2, UnitClass ("self"))].r

or

r = CUSTOM_CLASS_COLORS[select(2, UnitClass ("self.class"))].r

and some other things ...


I could use some help if someone know how to fix that.

Thank you.
Report comment to moderator  
Reply With Quote
Unread 09-28-13, 01:20 PM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Re: CUSTOM_CLASS_COLORS

Originally Posted by ak_wow
I tried to make the addon works with !classcolor but i know nothing about lua so i failed...
The default nameplates don't provide their owner's class as a variable, they just recolour the health bar. So what I'm doing in that code you modified is reading the colour of the default nameplates' health bar and putting it on to my addon's nameplates' health bar - not reading the class, which means it isn't available as a key in CUSTOM_CLASS_COLORS.

Similarly nameplate owners aren't given a unit definition unless you happen to be targeting the owner, in which case you still have to find the right nameplate (programmatically speaking, you can do this by checking that it is the only nameplate at 100% opacity) in order to work out which nameplate actually belongs to your target... All this means functions which take units, like UnitClass, don't work for nameplates.

To cut to the chase, to do this you'd have to do a sort of reverse-lookup to find the class given the colour of the nameplate. But that's.. more than a few lines of code. I'll look into it, though.

Thanks!

I doesn't track in Demonology or Affliction, and I'm not running any glyphs that would change corruption. I think another person in the RealUI thread also asked about the same thing.
I'll look at it when I get the chance, thanks.
Last edited by Kesava : 09-28-13 at 01:21 PM.
Report comment to moderator  
Reply With Quote
Unread 09-28-13, 01:44 PM  
ak_wow
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: CUSTOM_CLASS_COLORS

Originally Posted by Kesava
... To cut to the chase, to do this you'd have to do a sort of reverse-lookup to find the class given the colour of the nameplate. But that's.. more than a few lines of code. I'll look into it, though.

Thanks!
wawww i didn' t think that was so difficult...
I understard why i failed

Thanks for your anwser!
Report comment to moderator  
Reply With Quote
Unread 09-28-13, 04:03 PM  
madmatt91
A Kobold Labourer

Forum posts: 0
File comments: 27
Uploads: 0
couple .lua stuffs i'd like to know

Hi, first of all thanks for the addon it's a beauty! couple things i'd like to change for myself, i saw you said that to change the health bar background (not the frame background just the bit that appears as the health bar goes down like someone else asked) you would have to change the custom lua, i tried and this is how it looks:
Code:
function mod:PostCreate(msg, frame)
    frame.bg:SetVertexColor(.5,.5,.5,1)
although it doesn't really work infact nothing changes, still got the kinda faded out black bar as background, with the .5,.5,.5,1 values instead i should have a solid grey / light grey background, how can i fix this?

second thing, I'd like to have the health percentage display changed to decimal at all times

third thing, i would like the health percentage to be on the same vertical offset as the nameplate's unit name

last thing, i would like to be able to change the vertical offset of both the name and the health percentage, the build it options only allow untill just a bit over the center of the frame, i'd like to be able to go lower

thanks in advance i know it's a lot of question but probably someone else is looking for this too big ups for the great addon again!

EDIT: managed to get third and last thing to be as i wanted! about the first one i managed to change that specific color the problem is that the texture that changes that part is called solid right? in the ''t'' folder, and it's the same texture that also makes the border of the health bar appear, so you can't say put the background of the health bar at (.3, .3, .3, 1) and make the border remain totally black with ( 0, 0, 0, 1), or am i wrong?
would still need the decimals for the %health display, got no clue how to do that
Last edited by madmatt91 : 09-29-13 at 04:46 AM.
Report comment to moderator  
Reply With Quote
Unread 09-29-13, 07:56 AM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Re: couple .lua stuffs i'd like to know

Originally Posted by madmatt91
although it doesn't really work infact nothing changes, still got the kinda faded out black bar as background, with the .5,.5,.5,1 values instead i should have a solid grey / light grey background, how can i fix this?
I got that code wrong, sorry! It needs to be frame.bg.fill:SetVertexColor([your colour]), and it should be under mod:PostShow rather than mod:PostCreate.

And you're correct, changing this will also change the colour of the 1 pixel border around the health bar. To overcome that, add the following code under PostCreate (definitely under PostCreate this time):
Code:
    local b = CreateFrame('Frame',nil,frame.health)
    b:SetBackdrop({ edgeFile = kui.m.t.solid, edgeSize = 1 })
    b:SetBackdropBorderColor(0,0,0,1)
    b:SetAllPoints(frame.bg.fill)
That will create an extra border frame around the health bar, which should work fine.

Originally Posted by madmatt91
second thing, I'd like to have the health percentage display changed to decimal at all times
That's currently only possible by directly editing layout.lua.
Find this line:
Code:
                big = floor(curr / max * 100)
And change it to:
Code:
                big = string.format("%.1f", curr / max * 100)
You can change the "1" in that to indicate how many decimal places should be shown. Then make sure that both of your health display patterns in /knp > Health display are set to:
Code:
<=:p;
Originally Posted by madmatt91
third thing, i would like the health percentage to be on the same vertical offset as the nameplate's unit name
It should be, can you post a screenshot? Unless you worked out what was wrong.

Originally Posted by madmatt91
last thing, i would like to be able to change the vertical offset of both the name and the health percentage, the build it options only allow untill just a bit over the center of the frame, i'd like to be able to go lower
As you probably worked out, you can type lower and higher values than the slider exposes in the text box under the slider manually.

Thanks.
Last edited by Kesava : 09-29-13 at 07:58 AM.
Report comment to moderator  
Reply With Quote
Unread 09-29-13, 12:26 PM  
madmatt91
A Kobold Labourer

Forum posts: 0
File comments: 27
Uploads: 0
Re: Re: couple .lua stuffs i'd like to know

[/quote]
I got that code wrong, sorry! It needs to be frame.bg.fill:SetVertexColor([your colour]), and it should be under mod:PostShow rather than mod:PostCreate.

And you're correct, changing this will also change the colour of the 1 pixel border around the health bar. To overcome that, add the following code under PostCreate (definitely under PostCreate this time):
Code:
    local b = CreateFrame('Frame',nil,frame.health)
    b:SetBackdrop({ edgeFile = kui.m.t.solid, edgeSize = 1 })
    b:SetBackdropBorderColor(0,0,0,1)
    b:SetAllPoints(frame.bg.fill)
That will create an extra border frame around the health bar, which should work fine.
[/quote]

thanks for the response! ok the decimal percent health display works fine, got that one and the name to be where i want, also the health bar background now works as i want although yeah still shows the grey border, probably the border code you posted needs something like background level? dunno this is how it looks
Code:
function mod:PostCreate(msg, frame)
local b = CreateFrame('Frame',nil,frame.health)
    b:SetBackdrop({ edgeFile = kui.m.t.solid, edgeSize = 1 })
    b:SetBackdropBorderColor(0,0,0,1)
    b:SetAllPoints(frame.bg.fill)
	-- Place code to be performed after a frame is created here.
end

------------------------------------------------------------------------ Show --
function mod:PostShow(msg, frame)
    frame.bg.fill:SetVertexColor(.4, .4, .4, 1)
	-- Place code to be performed after a frame is shown here.
end
adding a screenshot so you see how it looks in game and you can see the lua error i get aswell, line 21 is this one:
Code:
    b:SetBackdrop({ edgeFile = kui.m.t.solid, edgeSize = 1 })
http://img32.imageshack.us/img32/3672/6xgj.jpg
yeah basically it just needs the black pixel border and it's fine!

thanks again!
Report comment to moderator  
Reply With Quote
Unread 09-29-13, 02:16 PM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Re: Re: Re: couple .lua stuffs i'd like to know

Originally Posted by madmatt91
...
Ah, sorry, you'll also need to add:
Code:
local kui = LibStub('Kui-1.0')
To the top of custom.lua.
Report comment to moderator  
Reply With Quote
Unread 09-29-13, 05:28 PM  
madmatt91
A Kobold Labourer

Forum posts: 0
File comments: 27
Uploads: 0
Re: Re: Re: Re: couple .lua stuffs i'd like to know

Originally Posted by Kesava
Originally Posted by madmatt91
...
Ah, sorry, you'll also need to add:
Code:
local kui = LibStub('Kui-1.0')
To the top of custom.lua.
yayyyy thanks it works looks amazing now!
Last edited by madmatt91 : 09-29-13 at 06:01 PM.
Report comment to moderator  
Reply With Quote
Unread 10-12-13, 04:06 AM  
Shnuggle
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Would you please consider making non-targeted mobs alpha jump up 100% when they are below 20%, a lot of classes have execute abilities and spells (or at least give a simple activation for it in the GUI). I have done this manually (changed lua) but, this feature as a default would be a lot easier for people.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: