View Single Post
04-28-23, 11:44 AM   #9
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,892
You don't need
Code:
AMD_TabOnCharacterFrame:OnLoad(AMD_OnLoad(self));
but if you wanted to add a method to the frame you could use a Mixin or
Lua Code:
  1. function AMD_TabOnCharacterFrame:OnLoad()
  2.     print(self:GetName(), "I'm loaded now!")
  3. end
  4.  
  5. AMD_TabOnCharacterFrame:OnLoad()

Adding an OnLoad function in lua to AMD_TabOnCharacterFrame doesn't really make sense in your case as it's already been loaded so, just using:
Lua Code:
  1. print(AMD_TabOnCharacterFrame:GetName(), "I'm loaded now!")

instead of adding the function and making the call would do the same.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 04-28-23 at 11:55 AM.
  Reply With Quote