WoWInterface - View Single Post - Overriding stuff mixed in
View Single Post
08-27-20, 08:35 PM   #4
I did that?
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,309
The mixin created the method on the frame ie.

function frame:OnEvent(self, event, ...)
-- OnEvent code

the xml frames OnEvent <Script> tag tells it to use the frame method.

What I posted replaces the mixin method that gets applied to the frame with your new one ie. it just overrides the old function with the new.

That's directly calling the method applied (copied) to the frame by the mixin (the one that is overwritten by the code in my original reply).

PVPMatchResults:GetScript("OnEvent")(PVPMatchResults, "PVP_MATCH_COMPLETE")
Call the function currently assigned to the script.
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 08-27-20 at 10:19 PM.
  Reply With Quote