WoW:API GetNumSkillLines: Difference between revisions
Jump to navigation
Jump to search
(upgraded deprecated template) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Returns the number of skill lines in the skill list. This includes headers. | Returns the number of skill lines in the skill list. This includes headers. |
Revision as of 16:42, 4 December 2007
Returns the number of skill lines in the skill list. This includes headers.
GetNumSkillLines();
- Arguments
- none
- Returns
- numSkills(Number)
- The line count for the skills window, including headers.
- Example
local numSkills = GetNumSkillLines(); for i=1, numSkills do local skillName = GetSkillLineInfo(i); end
- Result
"Armor"
- Example from SkillFrame.lua
local numSkills = GetNumSkillLines();
- Description
- Returns the number of lines in the skill window, including headers. This number can be used to loop through all skill lines and retrieving the info using GetSkillLineInfo