WoW:API GetNumSkillLines: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GetNumSkillLines to API GetNumSkillLines without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''GetNumSkillLines''' ''-Documentation by Chevalric-''</center>
{{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.
Line 19: Line 19:
  local numSkills = GetNumSkillLines();
  local numSkills = GetNumSkillLines();
  for i=1, numSkills do
  for i=1, numSkills do
   local skillName = getSkillLineInfo(i);
   local skillName = GetSkillLineInfo(i);
  end
  end


Line 33: Line 33:
;''Description''
;''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
: 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}}

Latest revision as of 04:46, 15 August 2023

WoW API < GetNumSkillLines

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