View Single Post
06/01/14, 12:20 AM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
You don't fire the callback. FTC does. All you do is register for it and listen for when it happens. When it fires, your registered function will run. THAT is where you should be putting your code.

FTC code:
Lua Code:
  1. CALLBACK_MANAGER:FireCallbacks("FTC_Ready")

Your code:
Lua Code:
  1. local function CreateSubmenu()
  2.      --do stuff
  3. end
  4. CALLBACK_MANAGER:RegisterCallback("FTC_Ready", CreateSubmenu)
  Reply With Quote