View Single Post
03-23-23, 01:38 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,894
So, not an event but a frame method (function)
Lua Code:
  1. function frame:SomeFunc(arg1, arg2)
  2.     self:SetAlpha(arg1)
  3.     if arg2 == "something" then
  4.         -- do other stuff
  5.     end
  6. end

Code:
frame:SomeFunc(0.5, "something")
You can also use a Mixin to apply methods but that ends up being the same thing.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote