Hey all. I'm sort of a wow add-on noob so apologies if this is a trivial question.
I recently began creating my first add-on which calculates the probability of a skill-up when crafting certain trade-skill items, based on the following formula from the wiki. I've managed to implement it almost fully now, by gathering up all the percentage chances for the players crafts, as seen here:
Would anyone be able to give me some pointers on how to achieve this? I initially tried using the frame stack to access the child frames belonging to each consecutive item, but using functions like frame:SetText() and the like proved futile.
This in an addon that loads with the Blizzard_TradeSkillUI will add the recipe ID to the text.
You can use that (or whatever you need) to do your calculation and add that text instead. The Count ([nnn]) at the end of the text is a separate fontstring. There's only so much space so the recipe text can be truncated for long recipe titles.