API C TradeSkillUI.GetRecipeReagentInfo

Returns the information for a reagent needed by a recipe. name, icon, reagentCount, playerReagentCount = C_TradeSkillUI.GetRecipeReagentInfo(recipeSpellID, reagentIndex [, recipeLevel])

Arguments

 * recipeSpellID : number
 * reagentIndex : number - Ranging from 1 to
 * recipeLevel : number ?

Returns

 * name : string ? - The localized name for the reagent.
 * icon : number ? - Icon FileID
 * reagentCount : number - The required number of the reagent needed to make the recipe once.
 * playerReagentCount : number - The amount of the reagent the player has.

Example
Prints the reagents for Thorium Widget. The player has 12 Thorium Bars and zero Runecloth.