Quantcast WoWInterface - View Single Post - reworking my profs info panel
View Single Post
02-09-10, 10:04 PM   #2
Premium Member
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,087
Initial thoughts are you may have to programmatically build your table up to hold the different information you will want.

Test with something like this. It includes weapon skills as well so you will need to see if there is something that differentiates weapon skills from crafting skills and work from there. Once you have just your craft skills you can then put the information you like to keep into a table and use that table to create the different elements of the button / tooltip etc. This was taken from http://www.wowwiki.com/API_GetSkillLineInfo which shows some more information in regards to that function.

for skillIndex = 1, GetNumSkillLines() do
  local skillName, isHeader, isExpanded, skillRank, numTempPoints, skillModifier,
    skillMaxRank, isAbandonable, stepCost, rankCost, minLevel, skillCostType,
    skillDescription = GetSkillLineInfo(skillIndex)
  if not isHeader then
     print(string.format("Skill: %s - %s", skillName, skillRank))
Then find an event such as "TRADE_SKILL_UPDATE" to keep the changeable values updated in the table so that the tooltip is constantly updated with the newest information.

Hopefully that will give you some insight into what else you can add or change as well.