View Single Post
10-28-23, 09:38 AM   #1
Tair
A Deviate Faerie Dragon
Join Date: Aug 2020
Posts: 10
Hook to resize the CollectionsJournal frame

I am working on a simple addon to resize certain Blizzard frames to compensate for ElvUI's low recommended UI scale on my monitor.

I have found that certain frames need to be resized at the time of their opening, otherwise the frame appears to be inaccessible or otherwise resets its scale. The backpack, as an example:
Code:
hooksecurefunc("OpenBackpack", function()
	ContainerFrameCombinedBags:SetScale(scale)
end)
However, I am stuck on trying to set the scale of the collections journal using a similar approach:

Code:
hooksecurefunc("CollectionsJournal_OnShow", function()
	CollectionsJournal:SetScale(scale)
end)
This returns an error: hooksecurefunc(): CollectionsJournal_OnShow is not a function

I've confirmed that the function exists in Blizzard_Collections.lua, but I'm wondering if it's maybe inaccessible.

Any tips would be greatly appreciated. Thank you for reading.
  Reply With Quote