LibNameplate-1.0
NOTE: LibNameplate is no longer supported, if you need a library to access nameplates you should take a look at libNameplateRegistry
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
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
Thanks so much for this addon, wonderful library has helped me so much together with the addon tidy Plates
Thanks again :)