View Single Post
12-07-16, 11:33 AM   #6
nukme
A Murloc Raider
Join Date: Jul 2016
Posts: 5
Originally Posted by Rainrider View Post
ChallengeModeCompleteBannerMixin is only available after Blizzard_ChallengesUI has been loaded. So either load the addon yourself prior to hooking, or listen to ADDON_LOADED and do the hook there.
I have finished my code. Turns out the frame name should be ChallengeModeCompleteBanner, as defined in the .xml file.

So the right hook is as below, when Blizzard_ChallengesUI is loaded.
Code:
hooksecurefunc(ChallengeModeCompleteBanner,"PlayBanner",Screenshot)
And one can change the hook a bit to allow for some delay to wait for the whole complete banner.

However I don't fully understand the structure of blizz code, as the relationship between ChallengeModeCompleteBanner and ChallengeModeCompleteBannerMixin confuses me, and I have to do some trial and error to comfirm the right hook combination.
  Reply With Quote