How can I hooksecurefunc with colon like this: "MainMenuBarMixin:OnShow"
View Single Post
08-19-18, 10:35 PM
Join Date: Sep 2008
It depends on 1) when the mixin is created 2) when the function is hooked and 3) when the frame has the mixin applied.
In Ammako's case, ExpBarMixin is created and is applied to a template in the frame xml,
any addon gets loaded. The template however is not used for instantiating a frame until PLAYER_ENTERING_WOLRD fires, which is typically
most addons are loaded. As such, any hooks applied to the mixin
PLAYER_ENTERING_WOLRD fires will propagate the the new frame.
In Nikita's case, MainMenuBarMixin is created and
used in the creation of MainMenuBar. This means there is no allowance for any hooks to be made and applied via the mixin.
Knowledge = Power; Be OP
Last edited by Gethe : 08-19-18 at
View Public Profile
Send a private message to Gethe
Find More Posts by Gethe