WoW:API GetNumSkillLines: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(upgraded deprecated template)
Line 1: Line 1:
{{wowapi}}
<center>'''GetNumSkillLines''' ''-Documentation by Chevalric-''</center>
<center>'''GetNumSkillLines''' ''-Documentation by Chevalric-''</center>


Line 34: Line 35:


: 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
: 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
----
{{template:WoW API}}

Revision as of 18:05, 6 January 2007

WoW API < GetNumSkillLines

GetNumSkillLines -Documentation by Chevalric-

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