View Single Post
Unread 08-27-12, 12:10 AM   #2
adelea
Claw of Regulos
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 22
Your addon identifier in RiftAddon.toc is Wrytch_it, but you reference it as a WrytchIt in your addon (:SetTexure()), but Wrytch_It in the Event handlers.

These all need to be consistent.

One thing you can do to make life easier.

At the very top of your .lua files, put :

local addon, shareddata = ...

Then, you can refer to the addon using addon.identifier :

closeButton:SetTexture(addon.identifier, "Textures/close.png")
table.insert(Command.Slash.Register("wrytchit"), {showWrytchIt, addon.identifier, "Slash command"})
adelea is offline   Reply With Quote