Hook fires for every element except the first one
2 Attachment(s)
Hello. Currently i am working on redesigning the challengemode frame. I noticed something i cant quite get the grip on.
On the challengemodekeystoneframe, you can add a keystone which will trigger this function: Lua Code:
Now since i want to change the look of the icons, i tried to hook into that function like this: Lua Code:
THis worked out just fine, except for the very first element it should work for. It just seems to always ignore the first element, no matter how many elements there are :( I meanwhile found a workaround by hooking ChallengesKeystoneFrameMixin:OnKeystoneSlotted() by shouldnt hooking the setup function work too? Blizzard ChallengesUI |
That's because that first affix is defined in XML, thus your hook to the mixin function had not been applied yet. The other affixes are created as needed by the ChallengeKeystoneFrameMixin, which happens only when you slot in a keystone.
|
All times are GMT -6. The time now is 08:34 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI