View Single Post
01-11-24, 11:13 AM   #7
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,897
You could use the OnHyperlinkClick to open the profession frame instead of using a separate button:
Lua Code:
  1. frame:SetScript("OnHyperlinkClick", function(self) -- if not using a seperate button
  2.     ProfessionsUtil.OpenProfessionFrameToRecipe(frame.ID)  -- frame.ID being where you stored the recipe ID for clicking
  3. end)

Updated my original example to include clicking on the hyperlink also opens the profession frame (and waiting for a link if the recipe is not cached)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 01-11-24 at 11:34 AM.
  Reply With Quote