Thread Tools Display Modes
Prev Previous Post   Next Post Next
11/25/14, 10:33 AM   #1
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Check if a specific addon is enabled?

Is there a way to check for this?
I ask as I am trying to integrate support for Item Saver in my Bank Manager Revived.
Item Saver uses a global variable which I pull (ItemSaver_IsItemSaved(item.bag, item.slot)),
It returns 1 if the checked item is saved, otherwise nil.
I made that work fine, but when Item Saver is not enabled in AddOns, then I get a "function expected instead of nil" error.

So... I guess I need to make sure Item Saver is enabled in AddOns before even running this check.
Can this be done?
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Check if a specific addon is enabled?


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