ExpandTradeSkillSubClass

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Expands a header within a tradeskill window.

ExpandTradeSkillSubClass(index)

Arguments

index
number - index within the tradeskill window

Triggers events

It is unknown whether an event triggers.

Example

_, skillType, _, isExpanded, _, _ = GetTradeSkillInfo(skillIndex)
for index = GetNumTradeSkills(), 1, -1 do
    if skillType == "header" then
        ExpandTradeSkillSubClass(index)
    end
end

Result All your currently-listed subclasses will be expanded. Subclasses that are folded within another will remain at their former state, collapsed or expanded.

Details

No error is generated when already isExpanded.
An error is generated when the skillType ~= "header": Bad skill line in ExpandTradeSkillSubClass