Navigation menu

WoW:API GetTalentInfo: Difference between revisions

Jump to navigation Jump to search
Add 2.3 inspect option.
mNo edit summary
(Add 2.3 inspect option.)
Line 2: Line 2:
Returns information about a specified talent in a specified tab.  
Returns information about a specified talent in a specified tab.  


  nameTalent, iconPath, tier, column, currentRank, maxRank, isExceptional, meetsPrereq = GetTalentInfo(tabIndex, talentIndex);
  nameTalent, iconPath, tier, column, currentRank, maxRank, isExceptional, meetsPrereq = GetTalentInfo(tabIndex, talentIndex, [inspect]);


----
----
Line 11: Line 11:
:;talentIndex : Integer - Specifies which talent in the given tab.
:;talentIndex : Integer - Specifies which talent in the given tab.


'''Note:''' The talentIndex is counted left-to-right, top-to-bottom. Meaning that the left-most talent in the top row is number 1, followed by the one immediately to its right being number 2. If there are no more talents to the right then it continues from the left-most talent on the next row.
::: '''Note:''' The talentIndex is counted left-to-right, top-to-bottom. Meaning that the left-most talent in the top row is number 1, followed by the one immediately to its right being number 2. If there are no more talents to the right then it continues from the left-most talent on the next row.
 
:;inspect : [[Boolean]] - If true returns the information for the inspected unit instead of  the player. New with 2.3.


----
----
Anonymous user