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() Code:
hooksecurefunc("CollectionsJournal_OnShow", 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. |
The Blizzard_Collections is marked as LoadOnDemand (see the Blizzard_Collections.toc file) which means it's not loaded along with the core UI before 3rd party addons (usually loads in response to the player pressing a key or clicking a button).
Your addon will need to listen for the ADDON_LOADED event and check if "Blizzard_Collections" is the addon and if so, then set up your hooks. |
Thank you very much, Fizzlemizz. You taught me something new and helped me solve my problem. I appreciate your help and insight!
|
All times are GMT -6. The time now is 11:09 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI