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).

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
Dec 18, 2012
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
LibNameplate-1.0
Reverse relationships
2
Downloads
14,370
Recent files
  • A: r150 for 5.1.0 Dec 18, 2012
  • A: r149 for 5.1.0 Dec 17, 2012
  • A: r148 for 5.1.0 Dec 17, 2012
  • A: r147 for 5.1.0 Dec 17, 2012
  • A: r146 for 5.1.0 Dec 16, 2012

Authors

Relationships

Tool used
FindGlobals
Embedded library
CallbackHandler-1.0
LibStub