View Single Post
05/11/19, 01:32 PM   #25
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Originally Posted by Sordrak View Post
I guess i just ran into this here... LibAddonMenu present in an old version and me only supporting the new one.

No idea of how i should feel supporting both versions at the moment o_O

Thanks for the info btw.
I did it like described above.
First check if the global variable LibAddonMenu2 exists and use it for your local instance of LAM, and if not check if LibStub is loaded and load the lib via this way.
After this check if your local instance of LAM is there and if not abort your addon with an error message (e.g. use assert() function to do so).
  Reply With Quote