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,936
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 06-07-11, 01:59 PM  
soulmoon
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 20
Uploads: 1
Originally posted by akgis
How do u make it look like this? I cant find options anywhere. I find the text to be to small for my resolution
open the file layout.lua and make changes in the blocks "background", "health bar", "health text" and "level / name texts" as presented in the text below

Code:
        -- background --------------------------------------------------------------
	frame.bg = CreateFrame("Frame", nil, frame)
	frame.bg:SetBackdrop({
		bgFile = kui.m.t.solid, edgeFile = kui.m.t.shadow,
		edgeSize = 5, insets = {
			top = 5, left = 5, bottom = 5, right = 5
		}
	})
	
	frame.bg:SetBackdropColor(0, 0, 0, .95)
	frame:SetGlowColour()
	
	frame.bg:SetWidth(112)
	frame.bg:SetHeight(22)
	
	frame.bg:SetPoint("CENTER")	
        -- health bar --------------------------------------------------------------
	frame.health = CreateFrame("StatusBar", nil, frame.bg)
	frame.health:SetStatusBarTexture(kui.m.t.bar)
	
	frame.health:SetWidth(100)
	frame.health:SetHeight(10)
	
	frame.health:SetPoint("CENTER")
	
        -- health text -------------------------------------------------------------
	frame.health.p = kui.CreateFontString(frame.health, {
		font = kui.m.f.yanone, size = 12, outline = "OUTLINE" })
	frame.health.p:SetParent(frame.health)
	frame.health.p:SetJustifyH('RIGHT')
	
	frame.health.p:SetPoint('CENTER', frame.health, 'CENTER', 0, 0)
	
	if np:GetSavedValue('hp', 'showAlt') then
		frame.health.mo = kui.CreateFontString(frame.health, {
			font = kui.m.f.yanone, size = 8, outline = "OUTLINE" })
		frame.health.mo:SetParent(frame.health)
		frame.health.mo:SetJustifyH('RIGHT')
	
		frame.health.mo:SetPoint('BOTTOMRIGHT', frame.health, -2, -2)
		frame.health.mo:SetAlpha(.5)
	end
	
	-- level/name texts --------------------------------------------------------
	frame.level = kui.CreateFontString(frame.level, { reset = true,
		font = kui.m.f.yanone, size = 9, outline = 'OUTLINE' })
	frame.level:SetParent(frame.health)
	
	frame.level:ClearAllPoints()
	frame.level:SetPoint('LEFT', frame.health, 'LEFT', -14, 0)

	frame.name = kui.CreateFontString(frame.name, { reset = true,
		font = kui.m.f.yanone, size = 12, outline = 'OUTLINE' })
	frame.name:SetParent(frame.health)
	frame.name:SetJustifyH('CENTER')

	frame.name:SetWidth(100)
	frame.name:SetHeight(8)

	frame.name:ClearAllPoints()
	frame.name:SetPoint('TOP', frame.health, 'TOP', 0, 10)
also find the text "self.name: SetWidth" and set value to 200 - it is does not give a long name to shrink
Code:
string must look like "self.name: SetWidth (200 - self.health.p: GetStringWidth ()) "
I will not love to confess how to change the texture and font, I think you know yourself

p.s.
we do not have enough opportunities, to change in the game position preferences texts and textures
p.s.s.
sorry for my english
Last edited by soulmoon : 06-07-11 at 02:03 PM.
Report comment to moderator  
Reply With Quote
Unread 06-07-11, 05:31 PM  
akgis
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 29
File comments: 80
Uploads: 4
How to call the sharemedia textures? Using Sharemedia.Minimalist but not working
__________________
Report comment to moderator  
Reply With Quote
Unread 06-07-11, 08:50 PM  
columnFive
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 16
Uploads: 6
Combat hiding/showing of nameplates

Let me start off by saying that I absolutely love the design of the nameplates, and am eager to convert from my old copy of Headline - except for the fact that enemy nameplates don't appear/disappear depending on combat.

On looking at the code, I at first thought this was because the mod wasn't registered for the PLAYER_REGEN_ENABLED and PLAYER_REGEN_DISABLED events - the respective handler methods are there, but there's no call to your np.kui:addEvent function for either event. So I added them in as below:

Code:
np.kui:addEvent('PLAYER_REGEN_DISABLED')
np.kui:addEvent('PLAYER_REGEN_ENABLED')
...following the same syntax as for UNIT_COMBO_POINTS. But nameplate showing/hiding still doesn't work, and now I'm kind of at loss as to how to fix this. Combo points clearly work, so that method of invoking your addEvent function shouldn't have any problems. I can't help but think that this would be a lot easier to figure out if your Kui function library didn't complicate the event registry process. I'm assuming this is meant to prevent redundant event-catching frames across a number of plugins that make up your UI - which is definitely an admirable goal, but it does obfuscate your code somewhat for a layman like me. But what do I know? There's probably a reason for that.

Anyway, dynamic showing/hiding of frames for entering/exiting combat doesn't work. Any chance for a fix?
Report comment to moderator  
Reply With Quote
Unread 06-07-11, 08:59 PM  
soulmoon
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 20
Uploads: 1
Originally posted by akgis
How to call the sharemedia textures? Using Sharemedia.Minimalist but not working
Interface\Addons\Kui\media\f - in this folder are living fonts
Interface\Addons\Kui\media\t - in this folder there are textures
bar.tga - health bar
barSmall.tga - cast bar
Report comment to moderator  
Reply With Quote
Unread 06-08-11, 04:31 AM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Re: Combat hiding/showing of nameplates

Originally posted by columnFive
Anyway, dynamic showing/hiding of frames for entering/exiting combat doesn't work. Any chance for a fix?
You have to enable the option with /knp gen combat.

Adding the events like that would work, but they're registered & unregistered upon load depending on that setting by slash.lua.
Report comment to moderator  
Reply With Quote
Unread 06-08-11, 03:43 PM  
columnFive
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 16
Uploads: 6
Re: Re: Combat hiding/showing of nameplates

Originally posted by Kesava
You have to enable the option with /knp gen combat.

Adding the events like that would work, but they're registered & unregistered upon load depending on that setting by slash.lua.
Oh! Did not realize this - thank you!
Report comment to moderator  
Reply With Quote
Unread 06-09-11, 11:00 PM  
Raeli
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 11
Uploads: 5
Thanks for the updates that do the things I asked for, perfect addon for me now
Report comment to moderator  
Reply With Quote
Unread 06-14-11, 06:00 PM  
Ither
A Firelord
 
Ither's Avatar
AddOn Author - Click to view AddOns

Forum posts: 497
File comments: 201
Uploads: 3
Love the new changes; one thing, how can I disable cast bars?

Don't really have a need for them since I use Quartz.
__________________
Report comment to moderator  
Reply With Quote
Unread 06-14-11, 07:34 PM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
For now you'll have to edit layout.lua. Just delete lines 1013 through 1020. If you don't have line numbers:

Code:
np.kui:addEvent('UNIT_SPELLCAST_START', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_FAILED', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_STOP', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_INTERRUPTED', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_DELAYED', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_CHANNEL_START', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_CHANNEL_UPDATE', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_CHANNEL_STOP', np.UnitCastEvent)
Last edited by Kesava : 06-14-11 at 07:35 PM.
Report comment to moderator  
Reply With Quote
Unread 06-16-11, 09:35 PM  
Ither
A Firelord
 
Ither's Avatar
AddOn Author - Click to view AddOns

Forum posts: 497
File comments: 201
Uploads: 3
Originally posted by Kesava
For now you'll have to edit layout.lua. Just delete lines 1013 through 1020. If you don't have line numbers:

Code:
np.kui:addEvent('UNIT_SPELLCAST_START', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_FAILED', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_STOP', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_INTERRUPTED', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_DELAYED', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_CHANNEL_START', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_CHANNEL_UPDATE', np.UnitCastEvent)
np.kui:addEvent('UNIT_SPELLCAST_CHANNEL_STOP', np.UnitCastEvent)
Didn't work -- still had castbars showing up at random times.
__________________
Report comment to moderator  
Reply With Quote
Unread 06-19-11, 11:47 AM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Oh, right, it'll be showing when you target things while they're casting I expect. You also need to remove line 469:
Code:
np.UNIT_SPELLCAST_START(self, 'target', self.castbar, channel)
Report comment to moderator  
Reply With Quote
Unread 06-19-11, 12:17 PM  
Theojin
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
2x <event>ADDON_ACTION_BLOCKED:AddOn 'Kui_Nameplates' hat versucht die geschützte Funktion 'NamePlate12:SetHeight()' aufzurufen.
<in C code>: in function `SetHeight'
Kui_Nameplates\layout.lua:214: in function <Interface\AddOns\Kui_Nameplates\layout.lua:213>
<in C code>: ?


buggrabber throttles the errors. It happens a lot of times.
Report comment to moderator  
Reply With Quote
Unread 06-19-11, 12:49 PM  
Kesava
A Murloc Raider
 
Kesava's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 141
Uploads: 1
Totally missed that in the last update. I'm changing the height so frames stack closer but that's blocked while you're in combat. There's no way around it that I'm aware of so I'll have to revert that I suppose.
Last edited by Kesava : 06-19-11 at 12:49 PM.
Report comment to moderator  
Reply With Quote
Unread 06-22-11, 06:11 AM  
Catok
A Kobold Labourer

Forum posts: 0
File comments: 24
Uploads: 0
Good job on a very clean and nice looking nameplate addon. Do you have any plans to implement buff and debuff icons? I've tried using Platebuffs with Knp and it doesn't work all the time. It simply doesn't hook all nameplate frames. I suspected it was because you used SetScript instead of HookScript for the OnShow/OnHide/OnUpdate handlers, but changing that didn't help much.

Either way, your own implementation of whitelist buff/debuff icons to match the theme would be sweet
Report comment to moderator  
Reply With Quote
Unread 06-26-11, 02:37 AM  
soulmoon
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 20
Uploads: 1
Neutral mobs health bar early in the fight to darken. This can be seen on the mannequin in the capital
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: