LibNameplate-1.0

The goal of LibNameplate is to let you pull info from nameplates and/or add frames to nameplates. Replacing whole nameplates is probably out of it's scope.

Some features of LibNampelate are:

  • LibNameplate keeps track of when nameplates are shown / hidden and has callbacks for these events.
  • LibNameplate provides API to pull info from nameplates such as the name, class, threat ect.
  • LibNameplate also links GUID's with nameplates allowing you to differentiate nameplates with the same name.

LibNameplate supports the default nameplates as well as Aloft*, Tidy Plates*, caelNameplates* and dNameplates* (see known issues page).

* Working before Cataclysm. Current status unknown.

If your nameplate addon alters the existing frames/regions of a nameplate (instead of creating new ones and hiding the Blizzard ones), then that addon's likely not going to work with LibNameplate.

Todo:

  • None

To get a handle in lua:

local LibNameplate = LibStub("LibNameplate")

API page here.
Callback page here.
Discussion forum: here.
Known issues page: here
Code example page: here

Warning: Replacing or altering existing elements of a nameplate could break LibNameplate's API. If you plan on doing this, please let me know so I can add support for your modifications.

Projects that use LibNameplate

Credits:

  • danltiger - Nameplate colour code from TidyPlates
  • WoWAce's IRC team, Torhal, Arrowmaster, orionshock, Gagorian, haste and others.
  • Adirelle - Removed garbage table creation, proper hook creation, proper localized variable creation in a lib.
  • archarodim - Helped with 4.1 fix. Likely other fixes too.

Donations welcome. There's a donate button here.

Bitcoin address: 13mvJMp8Z38SUAnZ4PgGpio5L2inqWQGsP

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Mar 08, 2010
Category
Last update
Feb 20, 2012
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
LibNameplate-1.0
Reverse relationships
2
Downloads
7,563
Recent files
  • R: 1.0.35 for 4.3 Feb 20, 2012
  • A: r139 for 4.3 Feb 20, 2012
  • R: 1.0.34 for 4.3 Jan 09, 2012
  • A: r137 for 4.3 Dec 13, 2011
  • R: 1.0.33 for 4.2 Sep 07, 2011

Authors

Relationships

Tool used
FindGlobals
Embedded library
CallbackHandler-1.0
LibStub