View Single Post
02-28-13, 05:17 PM   #1
Mayron
A Frostmaul Preserver
 
Mayron's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 275
Disable event on click?

Hi,

I have a quick question to ask. I am not use to not using KgPanels and I am just trying to make a small addon instead with a .lua file.

This should be very simple. How do I make the Shadowed Unit Frames addon recognisable in my script since it just comes up as nil:

Code:
if ShadowUF.db:GetCurrentProfile() == "ProfileName" then
	BTL:Show()
	TL:Hide()
end
Lua error says:
attempt to index global 'ShadowUF' (a nil value)

Thank you!

_
  Reply With Quote