View Single Post
06-27-16, 12:38 AM   #6
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Each parameter has to be getting what you expect. In this case, the event parameter was getting passed self (in this case the ResourceTrackFrame table) and the event landed in arg1.

Add "PLAYER_ENTERING_WORLD" to the registered events and
Code:
local function ResourceTrackFrame_OnEvent(self, event, arg1)
print(self, event, arg1)
reload the ui.

What you name the paramters doesn't matter, it is what they are passed that counts.
Code:
local function ResourceTrackFrame_OnEvent(amanda, marge, sue)
print(amanda, marge, sue)
reload the ui.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 06-27-16 at 01:20 AM.
  Reply With Quote