View Single Post
09-25-18, 02:43 PM   #2
sticklord
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 57
Im pretty sure it's impossible to hook the mixin, so you need to hook the frame. Maybe this will work (untested)

Lua Code:
  1. local function ShowBountyTooltip(self, bountyIndex)
  2.     print(bountyIndex)
  3. end
  4.  
  5. for _,frame in pairs({WorldMapFrame:GetChildren()}) do
  6.     if frame.BountyName then
  7.         hooksecurefunc(frame, "ShowBountyTooltip", ShowBountyTooltip)
  8.     end
  9. end

Last edited by sticklord : 09-25-18 at 02:49 PM.
  Reply With Quote