Added missing return information on altVerb
mNo edit summary |
(Added missing return information on altVerb) |
||
| Line 4: | Line 4: | ||
Retrieves information about a specific trade skill. | Retrieves information about a specific trade skill. | ||
skillName, skillType, numAvailable, isExpanded = GetTradeSkillInfo(skillIndex) | skillName, skillType, numAvailable, isExpanded, altVerb = GetTradeSkillInfo(skillIndex) | ||
== Arguments == | == Arguments == | ||
| Line 18: | Line 18: | ||
:;numAvailable : Number - The number of items the player can craft with his available trade goods. | :;numAvailable : Number - The number of items the player can craft with his available trade goods. | ||
:;isExpanded : Boolean - Returns if the header of the skillIndex is expanded in the crafting window or not | :;isExpanded : Boolean - Returns if the header of the skillIndex is expanded in the crafting window or not | ||
:;altVerb: String - If not nil, a verb other than "Create" which describes the trade skill action (i.e., for Enchanting, this returns "Enchant"). If nil the expected verb is "Create." | |||
== Example == | == Example == | ||
| Line 24: | Line 25: | ||
local name, type; | local name, type; | ||
for i=1,GetNumTradeSkills() do | for i=1,GetNumTradeSkills() do | ||
name, type, _, _ = GetTradeSkillInfo(i); | name, type, _, _, _ = GetTradeSkillInfo(i); | ||
if (name and type ~= "header") then | if (name and type ~= "header") then | ||
DEFAULT_CHAT_FRAME:AddMessage("Found: "..name); | DEFAULT_CHAT_FRAME:AddMessage("Found: "..name); | ||