Thread Tools Display Modes
Prev Previous Post   Next Post Next
01/03/21, 04:32 PM   #1
QuantumPie
AddOn Author - Click to view addons
Join Date: Sep 2019
Posts: 32
Hooks Not Working

I'm attempting to make a custom UI for the achievement panel and the first change I want to make is modifying the summary progress bars. On ESOUI's repo, I found that line 1546 in this file is what initializes the summary. Shortly after that is what updates it. I want to hook into these two functions, and I'm attempting to do that via:

Lua Code:
  1. function addon:Test()
  2.     ZO_PreHook(ACHIEVEMENTS, "InitializeSummary", function()
  3.         d("Inside the init hook!")
  4.         --return true
  5.     end)
  6.     ZO_PreHook(ACHIEVEMENTS, "UpdateSummary", function()
  7.         d("Inside the update hook!")
  8.         --return true
  9.     end)
  10.     d("In test!")
  11. end
I'm getting the output for printing "In test!" but I don't see anything for the hooks. Am I doing something incorrectly or can we not hook into these functions?
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Hooks Not Working


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