View Single Post
03/13/14, 08:31 PM   #7
inDef
Join Date: Mar 2014
Posts: 16
Originally Posted by Seerah View Post
Sorry, inDef, I was travelling and wanted to give you the answer and time needed, rather than try to get something out quick on my phone.

Glad you were able to find the answers you were looking for, and thanks so much for posting it here for others as well!


/edit: I would like to point out also that in the top of your library code, you should do this:

Lua Code:
  1. local MAJOR, MINOR = "LibAddonMenu-1.0", 4
  2. local lam, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
  3. if not lam then return end  --the same or newer version of this lib is already loaded into memory
Above, according to inDef's lines 58-60, you can see that LibStub:NewLibrary(major, minor) will return nil if the same or newer version of your library already exists. In this case, you can use my line 3 above. This means that the rest of your library's file will not be parsed into memory (so an older version won't overwrite a newer version).
Thanks for your reply Seerah!

Yeah, after I realized I posted in the wrong place and it'd likely be awhile before getting the response I was looking for... I decided to just dive in and figure it out.

Learned a lot and my understanding is much better now for it. I wish ESO was out so I could start working on my addon! Or if ZOS would at least give you guys permission to post the default UI functions and what they do (the ZO_ ones).
  Reply With Quote