Lore archive · Warcraft Wiki, 2023 dump
API C TradeSkillUI.GetCategoryInfo
Last wiki revision 2022-12-10
Returns information for a tradeskill category.
categoryInfo = C_TradeSkillUI.GetCategoryInfo(categoryID[, returnTable])
- categoryID: - The ID of the tradeskill category to get information for.
- returnTable: - Optional. The table to return the information in.
! Field !! Type !! Description
- categoryInfo: - A table containing information for the category:
- {|class="darktable zebra sortable"
- -
- -
- -
- name||String||Name of the category
- -
- enabled||Boolean||Is the category enabled
- -
- categoryID||Number||ID of the category
- -
- parentCategoryID||Number||ID of the category above this one
- -
- type||String||How should this category be displayed in the recipe list
- -
- hasProgressBar||Boolean||Should a progress bar be displayed for this category
- -
- numIndents||Number||How deeply to indent this category in the recipe list
- -
- skillLineStartingRank||Number||At what level does this category start learning ranks
- -
- skillLineMaxLevel||Number||At what level does this category stop learning ranks
- -
- skillLineCurrentLevel||Number||Current level of category skill
- }
- Using the optional 'returnTable' argument improves performance by not creating a new table for each call to the function. This is particularly useful when iterating over all the recipes for a trade skill.
- type has been seen as either "header", which is used for top-level expansion recipe categories, or "subheader", which is used for what in the old system were specializations (such as "Way of the Grill")
Source
https://warcraft.wiki.gg/wiki/API_C_TradeSkillUI.GetCategoryInfo · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.