Quantcast
Tradeskill recipe question - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-15-20, 03:33 AM   #1
dragonflyy
A Fallenroot Satyr
 
dragonflyy's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 21
Tradeskill recipe question

I am wanting to add a shift-click to recipes in the default TradeSkillFrame. The function that I have found is

Code:
function TradeSkillRecipeListMixin:OnRecipeButtonClicked(recipeButton, recipeInfo, mouseButton)
	if mouseButton == "LeftButton" then
		self:SetSelectedRecipeID(recipeInfo.recipeID);
	elseif mouseButton == "RightButton" then
		if recipeInfo.learned and not C_TradeSkillUI.IsTradeSkillGuild() and not C_TradeSkillUI.IsNPCCrafting() and not C_TradeSkillUI.IsTradeSkillLinked() then
			self.contextMenuRecipeID = recipeInfo.recipeID;
			ToggleDropDownMenu(1, nil, self.RecipeOptionsMenu, recipeButton, 0, 0);
			PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
		end
	end
end
How would I hook this function so I could add a Shift-LeftButton to it? Or is this not possible?

(Found that code snippet in the Blizzard_TradeSkillRecipeList.lua file.)
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Tradeskill recipe question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off