Thread Tools Display Modes
10-28-22, 07:36 AM   #1
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
hooksecurefunc issue, current addon InFlight

well as a newly minted maintainer of this addon there are a few bits and pieces i don't understand, that happen to be broken

there was some change that happened during the update that messed with at a minimum this line of code
i have searched for this GossipTitleButton_OnClick but i am comming up empty handed on info
line76
Lua Code:
  1. hooksecurefunc("GossipTitleButton_OnClick", function(this, button)

the full chunk
lines 76 to 105

Lua Code:
  1. hooksecurefunc("GossipTitleButton_OnClick", function(this, button)
  2.         if this.type ~= "Gossip" then
  3.             return
  4.         end
  5.  
  6.         local subzone = GetMinimapZoneText()
  7.         local tsz = t[subzone]
  8.         if not tsz then
  9.             return
  10.         end
  11.  
  12.         local text = this:GetText()
  13.         if not text or text == "" then
  14.             return
  15.         end
  16.  
  17.         local source, destination
  18.         for _, sz in ipairs(tsz) do
  19.             if strfind(text, sz.find, 1, true) then
  20.                 source = sz.s
  21.                 destination = sz.d
  22.                 break
  23.             end
  24.         end
  25.  
  26.         if source and destination and LoadInFlight() then
  27.             self:StartMiscFlight(source, destination)
  28.         end
  29.     end)
__________________
  Reply With Quote
10-28-22, 09:45 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
It's now a template that uses a Mixin. You will have to find the button(s) that inherit the template
Code:
<Button name="GossipTitleButtonTemplate" virtual="true" mixin="GossipSharedTitleButtonMixin" hidden="false">
There are also templates that inherit that template so, depending on what you need, it might be a bit of a hunt.
Code:
<Button name="GossipTitleActiveQuestButtonTemplate" virtual="true" inherits="GossipTitleButtonTemplate" mixin="GossipActiveQuestButtonMixin">
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 10-28-22 at 09:47 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » hooksecurefunc issue, current addon InFlight


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