Looks like there is a constant MAX_TRADE_SKILL_REAGENTS that can be used to generate a list .. Blizzard_TradeSkillUI.lua is clearly a good place to look.
local reagentName, reagentTexture, reagentCount, playerReagentCount = GetTradeSkillReagentInfo(id, i)
SelectTradeSkill(id)
GetNumTradeSkills()
GetTradeSkillSelectionIndex()
id seems to be a number with 0 meaning no selected / known trade skill.
There is a bunch of functions in that file but these seem to be the sort of thing you are looking for.
|