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,967
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 01-08-13, 11:37 PM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
That's a feature in the default UI since 5.1. More on it from an older comment here.
Originally Posted by Kesava
Not unless Blizzard implement [an option to disable them] in the default options. I could make them -look- the same, but they'd stack over each other, and the click-box would still be smaller. Addons can't change the size of interactive things in combat, so it would sometimes work, and sometimes not, which isn't great.
The other way I could "fix" it would be very clunky and I don't have any plans to. I kind of expect Blizzard to at least implement a hidden CVar to disable them at some point (like they do for threat-enlargement), so I feel it'd be wasted development time.
Last edited by Kesava : 01-08-13 at 11:37 PM.
Report comment to moderator  
Reply With Quote
Unread 01-08-13, 06:20 PM  
devilArt
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 51
File comments: 203
Uploads: 2
since 5.1, some mob's nameplate become small, is there a way to fix it?
Report comment to moderator  
Reply With Quote
Unread 01-04-13, 12:44 PM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Originally Posted by Anja
okay, and how can i change the values of the minions?
To change things in trivial nameplates you need to put whatever code you want in PostShow, and surround it with this:

Code:
if frame.trivial then
    [your code here]
end
frame.trivial is always false in PostCreate, so everything needs to be in PostShow, Hide or Target. So for example if you want to show levels on trivial nameplates you could do this:

Code:
if frame.trivial then
    frame.level:Show()
    [then you should also set the point of .level so it looks better or whatever else you like]
end
Last edited by Kesava : 01-04-13 at 12:45 PM.
Report comment to moderator  
Reply With Quote
Unread 12-26-12, 04:24 AM  
Anja
A Fallenroot Satyr
 
Anja's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 37
Uploads: 3
okay, and how can i change the values of the minions?
Report comment to moderator  
Reply With Quote
Unread 12-25-12, 03:23 PM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Yeah. Certain things you modify need to be put in PostShow because they're changed in layout.lua when a trivial nameplate is shown. So, name text, level text, things like that. Things that you make can usually be put in PostCreate, as they won't be modified anywhere in layout.lua.

This should work, but I haven't tested it. Just as an example for what needs to be moved into PostShow.
Code:
local function PostCreate(frame)
	frame.bg.fill:SetSize(169, 30)
	frame.bg:SetTexture(nil)
	frame.boss:SetTexture('Interface\\TargetingFrame\\UI-TargetingFrame-Skull')
	frame.boss:SetSize(10, 10)
end

------------------------------------------------------------------------ Show --
local function PostShow(frame)
	if frame.boss:IsVisible() then
		frame.level:SetText('    ')
	end

	frame.health:SetSize(frame.health:GetWidth(), 7)
	frame.level:SetFont("Fonts\\ARIALN.ttf", 13, nil)
	frame.level:SetPoint('BOTTOMLEFT', frame.health, 'TOPLEFT', 4, 4)
	frame.name:SetFont("Fonts\\ARIALN.ttf", 13, nil)
	frame.name:SetPoint('LEFT', frame.level, 'RIGHT', 2, 0)
end
Report comment to moderator  
Reply With Quote
Unread 12-25-12, 10:28 AM  
Anja
A Fallenroot Satyr
 
Anja's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 37
Uploads: 3
didnt work well, when you saw a minion the design from my custom.lua will overwrite the style from the minion plate :/

http://www.wowhead.com/npc=56401 in the greenstone cave in jadeforest i test this everytime.

this is my code so far:

Code:
local function PostCreate(frame)
	frame.health:SetSize(frame.health:GetWidth(), 7)
	frame.bg.fill:SetSize(169, 30)
	frame.bg:SetTexture(nil)
	frame.level:SetFont("Fonts\\ARIALN.ttf", 13, nil)
	frame.level:SetPoint('BOTTOMLEFT', frame.health, 'TOPLEFT', 4, 4)
	frame.name:SetFont("Fonts\\ARIALN.ttf", 13, nil)
	frame.name:SetPoint('LEFT', frame.level, 'RIGHT', 2, 0)
	frame.boss:SetTexture('Interface\\TargetingFrame\\UI-TargetingFrame-Skull')
	frame.boss:SetSize(10, 10)
end

------------------------------------------------------------------------ Show --
local function PostShow(frame)
	if frame.boss:IsVisible() then
		frame.level:SetText('    ')
	end
end
how can i change the style from the minions?
Last edited by Anja : 12-25-12 at 10:29 AM.
Report comment to moderator  
Reply With Quote
Unread 12-24-12, 11:04 AM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Originally Posted by Anja
some news about the theme seperation?!
Well, there's custom-rename-me.lua in the Kui_Nameplates folder now. If you rename that to custom.lua you can put whatever code you want in the hook-functions to modify the layout at specific points, rather than changing things in layout.lua.

So, to demonstrate, if you wanted nameplates to have a.. pure.. black background.. You'd do this. Find this line in custom-rename-me.lua:
Code:
local function PostCreate(frame)
And put this code after it:
Code:
	frame.parent:SetBackdrop({ bgFile = 'Interface\\AddOns\\Kui_Media\\t\\solid' })
	frame.parent:SetBackdropColor(0, 0, 0)
Then rename custom-rename-me.lua to custom.lua, completely restart wow (if you had it open) so it detects the new file, and then nameplates should be really ugly, and they'll still be really ugly even after you update the addon. Unless I rename a variable, or change the way custom code is hooked. You'll never need to absolutely recode everything like you did before though.

If you have trouble getting something to work with this, PM me. It doesn't support absolutely everything, but it's enough for me to get castbars, cast warnings, etc. working, so it should be enough for you to make basic layout changes.
Last edited by Kesava : 12-24-12 at 11:22 AM.
Report comment to moderator  
Reply With Quote
Unread 12-23-12, 07:37 AM  
Anja
A Fallenroot Satyr
 
Anja's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 37
Uploads: 3
some news about the theme seperation?!
Report comment to moderator  
Reply With Quote
Unread 12-21-12, 05:28 AM  
Velarayne
An Aku'mai Servant
 
Velarayne's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 35
File comments: 57
Uploads: 1
Thanks for the help; that worked perfectly. :>
Report comment to moderator  
Reply With Quote
Unread 12-20-12, 12:37 PM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Originally Posted by Velarayne
Say I added a bar texture to to the texture folder in Kui_Media; How would I go about editing the LUA to use that bar texture on my nameplates? I skimmed through the LUA a bit and wasn't sure what I would need to change. Thanks in advance! :>
Edit Kui_Nameplates/lib/kui/main.lua, line ~23 should be:
Code:
bar = media .. 't\\bar',
Change "bar" at the end to the name of the texture file you added to the Kui_Media\t folder, minus the .tga file extension. That should change everything. At the moment you'll have to edit that every time there's an update. At some point though, I think I'll move textures over to libSharedMedia to make it easier to configure.

Originally Posted by McBloed
Options sometimes dont be saved after relog in version 3.5.2 (reload works, just relog dont)
Edit: in fact, I've just pushed the update to fix this (133), so there's no need to do anything below.

That should be fixed in the next version, however it should, maybe work properly if you do this:
Code:
/run KuiNameplatesDB=nil;ReloadUI()
That'll reset your configuration, but I'll need to do that anyway. Also I guess since it's not saving settings anyway it doesn't really matter too much.
Last edited by Kesava : 12-20-12 at 01:09 PM.
Report comment to moderator  
Reply With Quote
Unread 12-20-12, 09:27 AM  
Velarayne
An Aku'mai Servant
 
Velarayne's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 35
File comments: 57
Uploads: 1
I have another question, if you don't mind. ^^

Say I added a bar texture to to the texture folder in Kui_Media; How would I go about editing the LUA to use that bar texture on my nameplates? I skimmed through the LUA a bit and wasn't sure what I would need to change. Thanks in advance! :>
Report comment to moderator  
Reply With Quote
Unread 12-17-12, 09:43 AM  
McBloed
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 33
Uploads: 1
Options sometimes dont be saved after relog in version 3.5.2 (reload works, just relog dont)
Last edited by McBloed : 12-18-12 at 09:13 AM.
Report comment to moderator  
Reply With Quote
Unread 12-15-12, 10:10 PM  
Velarayne
An Aku'mai Servant
 
Velarayne's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 35
File comments: 57
Uploads: 1
Originally Posted by Kesava
It should be possible for you to get the font to look right on trivial frames. If you rename the custom-rename-me.lua to (predictably) custom.lua, look for this line:
Code:
-- Place code to be performed after a frame is shown here.

And put this code after it:
Code:
    if frame.trivial then
        local name,_,style = frame.name:GetFont()
        frame.name:SetFont(name, KuiNameplates.fontSizes.name, style)
    end
Then completely restart wow (if you had it open), the names on both types of frames -should- be the same size. As per keeping everything pixel-perfect those frames aren't scaled in any way - it's just because the names on trivial frames use a 1 point smaller font size.

But concerning -frame- sizes, as you read in the other reply I can only make them look the same. The click boxes would still be the smaller size because Blizzard doesn't let us control that without it sometimes breaking, so it'd result in really bad UI feedback.


Thanks!
Thank you so much, this worked perfectly. That was driving me crazy! :>
Report comment to moderator  
Reply With Quote
Unread 12-15-12, 07:44 AM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

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

Originally Posted by Monkooli
a monochrome setting
It's possible to do that in this version - you need to search for "OUTLINE" in layout.lua, castbar.lua and castwarnings.lua and replace each of them with "OUTLINE, MONOCHROME". But it should much easier to do in the version I'm working on, and I'll be able to add an option for it.
Report comment to moderator  
Reply With Quote
Unread 12-15-12, 05:56 AM  
Monkooli
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Monochrome

Hello, I really like this addon but one thing that I would need for it to fit in my UI is a monochrome setting. I can't really find the option for it in the LUA files so can you lend me a hand?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: