Quantcast
WoWInterface - View Single Post - Tradeskill recipe question
View Single Post
12-16-20, 05:54 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,029
The DefaultUI already does this.

Code:
if self.isHeader then
	self:GetParent():GetParent():OnHeaderButtonClicked(self, self.tradeSkillInfo, button);
else
	if IsModifiedClick() then
		HandleModifiedItemClick(C_TradeSkillUI.GetRecipeLink(self.tradeSkillInfo.recipeID));
	else
		self:GetParent():GetParent():OnRecipeButtonClicked(self, self.tradeSkillInfo, button);
	end
end
Blizzard_TradeSkillRecipeButton.xml:169

This is what calls the function you noted.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote