Quantcast
Download
(196 Kb)
Download
Updated: 07-27-16 09:48 AM
Pictures
File Info
Compatibility:
Legion Pre-Patch (7.0.3)
Updated:07-27-16 09:48 AM
Created:02-03-11 11:34 AM
Downloads:51,897
Favorites:247
MD5:
Categories:Unit Mods, Combat Mods
7.0.3

KuiNameplates  Updated less than 3 days ago!  Popular! (More than 5000 hits)

Version: 2-7
by: Kesava [More]

Prettier nameplates with auras.
Configurable through interface options (/knp or /kuinameplates).

Notable features
  • Pixel perfect!
  • Auras!
  • Combo points and other class powers!
  • Tank mode!
  • Pretty fading in/out of frames (disable by unchecking "Smoothly fade" in options)
  • Other things!

I have a problem/question!

More up to date versions can often be found on Curse. Please try using that version before reporting a bug.

If you have any issues, feel free to PM me, post it in the comments on Curse, or on GitHub (but check through that list to make sure it's not already there, first). I don't get any sort of notification for comments posted on WoWI, so that might not be the best option.

Change logs available @ CurseForge.
Archived Files (3)
File Name
Version
Size
Author
Date
2-4
193kB
Kesava
07-21-16 01:01 PM
2-1
192kB
Kesava
07-19-16 10:32 AM
260
303kB
Kesava
02-18-16 02:04 PM


Post A Reply Comment Options
Unread 11-02-13, 09:08 AM  
Solvexx
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 43
Uploads: 2
I can't find any mention of it being a different spell ID.
Even losecontrol uses the same spell ID that you do for the warrior disarm.

So.. Not sure.
Report comment to moderator  
Reply With Quote
Unread 11-02-13, 07:39 AM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 3
It probably just has a different spell ID on players. I'll try to find it and add it to the whitelist for the next release.

Thanks.

Originally Posted by Solvexx
...
Report comment to moderator  
Reply With Quote
Unread 11-01-13, 09:01 PM  
Solvexx
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 43
Uploads: 2
Hello! Great addon!

One problem though, the disarm debuff for warriors works for PvE encounters but when I disarm other players it doesn't show up. Is there a function I've missed?

Cheers.
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
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 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: 3
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, 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, 07:56 AM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 3
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-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-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, 01:20 PM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 3
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, 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-24-13, 09:15 AM  
Midjet
A Fallenroot Satyr

Forum posts: 20
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-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: 3
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-21-13, 12:30 PM  
Midjet
A Fallenroot Satyr

Forum posts: 20
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
Post A Reply



Category Jump:

Support AddOn Development!

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.