From 9410e395dc13926332b287747aff9571e162d9c6 Mon Sep 17 00:00:00 2001 From: MilleXIV Date: Sun, 28 Aug 2016 11:18:49 -0400 Subject: [PATCH] Fixing Tradeskill buttons Pulling actual name instead of guessing (which doesn't work) --- modules/tradeskill.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tradeskill.lua b/modules/tradeskill.lua index 1a1e8c6..2dbee7a 100644 --- a/modules/tradeskill.lua +++ b/modules/tradeskill.lua @@ -139,7 +139,8 @@ function TradeskillModule:StyleTradeskillFrame(framePrefix, profIndex) end self[framePrefix..'Frame']:SetSize(iconSize + self[framePrefix..'Text']:GetStringWidth() + 5, xb:GetHeight()) - self[framePrefix..'Frame']:SetAttribute('spell', name) --- While this is usually the type of thing I'd put into RegisterFrameEvents(), I need it to update + local spellName, subSpellName = GetSpellBookItemName(spellOffset + 1, BOOKTYPE_PROFESSION) + self[framePrefix..'Frame']:SetAttribute('spell', spellName) --- While this is usually the type of thing I'd put into RegisterFrameEvents(), I need it to update end function TradeskillModule:CreateFrames() -- 1.7.9.5