Library to help with querying unit talents. There's many factors using the NotifyInspect() / INSPECT_TALENT_READY combo which will invalidate the results (spammy inspect addons, zoning, roster updates). This library helps by removing that layer of uncertainty and complexity from your addon to give a simple Query/Result to deal with.
Example Usage:
local TalentQuery = LibStub:GetLibrary("LibTalentQuery-1.0") TalentQuery.RegisterCallback(self, "TalentQuery_Ready") local raidTalents = {} ... TalentQuery:Query(unit) ... function MyAddon:TalentQuery_Ready(e, name, realm, unitid) local isnotplayer = not UnitIsUnit(unitid, "player") local group = GetActiveTalentGroup(isnotplayer) local spec = {} for tab = 1, GetNumTalentTabs(isnotplayer) do local _, treename, _, _, pointsspent = GetTalentTabInfo(tab, isnotplayer, nil, group) tinsert(spec, pointsspent) end raidTalents[UnitGUID(unitid)] = spec end
Facts
- Date created
- Mar 30, 2008
- Category
- Last update
- Oct 18, 2010
- Development stage
- Release
- Language
- enUS
- License
- GNU Lesser General Public License version 2.1 (LGPLv2.1)
- Curse link
- LibTalentQuery-1.0
- Reverse relationships
- 26
- Downloads
- 52,282
- Recent files
- R: 4.0 Release 1 for 4.0.1 Oct 18, 2010
- A: r87 for 4.0.1 Oct 17, 2010
- A: r86 for 4.0.1 Oct 16, 2010
- R: 3.3 Release 2 for 3.3.5 Aug 27, 2010
- A: r84 for 3.3.5 Aug 24, 2010
Relationships
- Embedded library
- CallbackHandler-1.0
- LibStub