Get an Epic Experience with Premium

LibNameplate-1.0

Libraries Login to Add Favorites
  • 1 Like
  • World of Warcraft
  • 408 Monthly Downloads
  • Supports: 5.0.4
  • 14,349 Total Downloads
  • Updated 09/02/2012
  • Created 03/07/2010
  • 7 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: GNU General Public License version 3 (GPLv3)
  • Newest File: 1.0.36
or
Support development! **
Donate

About 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

------------------------------------------------------------------------
r143 | archarodim | 2012-09-02 15:59:20 +0000 (Sun, 02 Sep 2012) | 1 line
Changed paths:
   A /tags/1.0.36 (from /trunk:142)

Tagging as 1.0.36
------------------------------------------------------------------------
r142 | archarodim | 2012-09-01 05:27:51 +0000 (Sat, 01 Sep 2012) | 1 line
Changed paths:
   M /trunk/LibNameplate-1.0.toc

TOC to 50001
------------------------------------------------------------------------
r141 | archarodim | 2012-07-03 19:34:08 +0000 (Tue, 03 Jul 2012) | 1 line
Changed paths:
   M /trunk/LibNameplate-1.0/LibNameplate-1.0.lua

Basic compatibility layer for MoP (handles the renaming of GetNumRaidMembers() and GetNumPartyMembers()). More testing is required. Minor bumped to 36.
------------------------------------------------------------------------

Comments

  • #2

    hi there,

    got a error message for you:
    103x LibNameplate-1.0\LibNameplate-1.0-35.lua:488: attempt to call upvalue "GetNumRaidMembers" (a nil value)
    LibNameplate-1.0\LibNameplate-1.0-35.lua:488: in function "NewNameplateCheckHP"
    LibNameplate-1.0\LibNameplate-1.0-35.lua:541: in function <LibNameplate-1.0\LibNameplate-1.0.lua:529>
    (tail call): ?
    <in C code>

    Locals:
    self = <table> {
     GetLevel = <func> @..\..\LibNameplate-1.0.lua:1049
     GetReaction = <func> @..\..\LibNameplate-1.0.lua:1223
     GetHealthMax = <func> @..\..\LibNameplate-1.0.lua:1253
     GetHealth = <func> @..\..\LibNameplate-1.0.lua:1264
     plateChildren = <table> {}
     IsTarget = <func> @..\..\LibNameplate-1.0.lua:990
     onHideHooks = <table> {}
     IsCasting = <func> @..\..\LibNameplate-1.0.lua:1201
     threatStatus = <table> {}
     NameplateSlowAnimation = <func> @..\..\LibNameplate-1.0.lua:425
     HideMouseoverRegion = <func> @..\..\LibNameplate-1.0.lua:1131
     NameplateOnShow = <func> @..\..\LibNameplate-1.0.lua:275
     healthOnValueChanged = <func> @..\..\LibNameplate-1.0.lua:529
     NameplateOnHide = <func> @..\..\LibNameplate-1.0.lua:304
     IsMouseover = <func> @..\..\LibNameplate-1.0.lua:1121
     GetEliteRegion = <func> @..\..\LibNameplate-1.0.lua:936
     healthOnValueChangedHooks = <table> {}
     nameplates = <table> {}
     GetClass = <func> @..\..\LibNameplate-1.0.lua:1239
     HookNameplate = <func> @..\..\LibNameplate-1.0.lua:576
     IsElite = <func> @..\..\LibNameplate-1.0.lua:1094
     onFinishedGroups = <table> {}
     GetTargetNameplate = <func> @..\..\LibNameplate-1.0.lua:1287
     IsBoss = <func> @..\..\LibNameplate-1.0.lua:1081
     GetThreatSituation = <func> @..\..\LibNameplate-1.0.lua:1107
     prevHealth = <table> {}
     SetupNameplate = <func> @..\..\LibNameplate-1.0.lua:252
     GetNameplateByHealth = <func> @..\..\LibNameplate-1.0.lua:1390
     GetThreatRegion = <func> @..\..\LibNameplate-1.0.lua:947
     IsMarked = <func> @..\..\LibNameplate-1.0.lua:1185
     GetName = <func> @..\..\LibNameplate-1.0.lua:1026
     RegisterCallback = <func> @Ace3\..\CallbackHandler-1.0.lua:118
     UnregisterCallback = <func> @Ace3\..\CallbackHandler-1.0.lua:181
     CheckFrameForTargetGUID = <func> @..\..\LibNameplate-1.0.lua:241
     NameplateFastAnimation = <func> @..\..\LibNameplate-1.0.lua:405
     NewNameplateCheckHP = <func> @..\..\LibNameplate-1.0.lua:478
     plateGUIDs = <table> {}
     plateRegions = <table> {}
     GetLevelDifficulty = <func> @..\..\LibNameplate-1.0.lua:1061
     GetNameRegion = <func> @..\..\LibNameplate-1.0.lua:900
     IteratePlates = <func> @..\..\LibNameplate-1.0.lua:1374
     GetAllNameplates = <func> @..\..\LibNameplate-1.0.lua:1366
     GetNameplateByUnit = <function> de

  • #1

    Thanks so much for this addon, wonderful library has helped me so much together with the addon tidy Plates
    Thanks again :)

    Last edited by Ivet69 on 11/3/2011 9:21:35 AM
  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Infinite Crisis NA

Get Your Preferred Access Code!