C_TradeSkillUI .GetAllRecipeIDs
Jump to navigation
Jump to search
Flavors |
---|
Links |
Info |
Added in 7.0.3 |
Returns all recipes for the current profession.
recipeIDs = C_TradeSkillUI.GetAllRecipeIDs()
Returns
- recipeIDs
- number[] - The IDs of all the recipes for the current trade skill, or an empty table if the trade skill panel has yet to be opened.
Example
The following snippet lists the names of all the recipes for the current trade skill:
for _, id in pairs(C_TradeSkillUI.GetAllRecipeIDs()) do
local recipeInfo = C_TradeSkillUI.GetRecipeInfo(id)
print(recipeInfo.recipeID, recipeInfo.name)
end
Details
- The table that is returned includes both learnt and unlearnt recipes and ignores all filtering.
Patch changes
Patch 7.0.3 (2016-07-19): Added.