Example

LUA code

local LibNP = LibStub("LibNameplate-1.0", true)
function MyAddon:OnEnable()
	LibNP.RegisterCallback(self, "LibNameplate_NewNameplate")
end

function MyAddon:LibNameplate_NewNameplate(_, plate)
	local plateName = LibNP:GetName(plate)
	local plateLevel = LibNP:GetLevel(plate)
	print(plateName.." is on screen!", "They're level "..plateLevel..".")
end

pgkmeta

 libs/LibNameplate-1.0:
  url: svn://svn.wowace.com/wow/libnameplate-1-0/mainline/trunk/LibNameplate-1.0
  tag: latest

embeds.xml

<Include file="libs\LibNameplate-1.0\lib.xml"/>

toc (optional)

## OptionalDeps: LibNameplate-1.0

Comments

Posts Quoted:
Reply
Clear All Quotes