Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/07/14, 03:22 PM   #1
skyraker
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 154
What's wrong with this?

Lua Code:
  1. function ABT.initBookTrack(code, addOnName)
  2.     if (addOnName == "BookTracker") then
  3.         SLASH_COMMANDS["/mybooks"] = ABT.showBookWindow
  4.     end
  5. end
  6.  
  7. EVENT_MANAGER:RegisterForEvent("bookTrack", EVENT_ADD_ON_LOADED , ABT.initBookTrack)

The slash command is not being added. Yes, ABT.initBookTrack is defined. Yes, BookTracker is the title of the addon in my txt file.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » What's wrong with this?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off