mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Clicking a recipe row now shows a Blizzard-styled detail pane: the crafted item (or enchant) with its icon on the Class-Trainer detail-header bar, the spell description for enchants, and the reagent grid (icon + name plate + have/need counts) matching the CraftFrame layout. The first recipe is auto-selected on open; selecting a row tints the row highlight to the recipe's difficulty colour and whitens its text. Rows are now real ClassTrainerSkillButtonTemplate buttons (the template the CraftFrame/TradeSkillFrame use) so name rendering and spacing match exactly. Reagent + product data (createdItem, numMade, reagents) is folded into the existing C_TradeSkillUI.GetTradeSkillListRecipes decoder rather than adding a new function. The real GetTradeSkillReagentInfo family is indexed by the player's own open window, so it can't describe a linked recipe from someone else's profession; the reagents are read straight from Spell.dbc instead.