Hi all
I want to disable the Heirlooms tab button on the Collections Journal.
I have tried a number of different methods all without success.
I have tried;
Lua Code:
-- hook character equipment manager button
hooksecurefunc(
"HeirloomsJournalSpellButton_OnClick",
function()
ToggleCharacter("PaperDollFrame")
end
)
and get the following error;
Lua Code:
5x IronMan\IronMan-1.0.9.15.lua:601: hooksecurefunc(): HeirloomsJournalSpellButton_OnClick is not a function
[string "=[C]"]: in function `hooksecurefunc'
[string "@IronMan\IronMan-1.0.9.15.lua"]:601: in function <IronMan\IronMan.lua:579>
[string "@IronMan\IronMan-1.0.9.15.lua"]:654: in function <IronMan\IronMan.lua:643>
Locals:
I have also tried;
Lua Code:
local functionIWantToDisable, isFunctionStillRelevant = HeirloomsJournalSpellButton_OnClick, false
function PVEFrame_ToggleFrame()
if isFunctionStillRelevant then
return functionIWantToDisable()
end
end
This throws no errors.
I have also tried to hide the HeirloomsJournal frame on show, and track the HEIRLOOMS_UPDATED event as well.
The event does not trigger on show so I can only guess it fires when we update a heirloom.
Is there a way I can achieve my goal?