-
Notifications
You must be signed in to change notification settings - Fork 0
Adding OneVersion Support
Adding OneVersion support to your add-on is very simple. Just follow these simple steps:
-
Add code to you add-on which tracks a major, minor, and patch level version numbers.
local Major, Minor, Patch, Suffix = 1, 0, 0, 0 local YOURADDON_CURRENT_VERSION = string.format("%d.%d.%d", Major, Minor, Patch)
-
In the code that loads your add-on, fire the generic OneVersion_ReportAddonInfo event, like so:
Event_FireGenericEvent("OneVersion_ReportAddonInfo", "YourAddonName", Major, Minor, Patch)
Typically this event is fired at the end of the OnDocLoaded or OnInterfaceMenuListHasLoaded events.
OneVersion also supports reporting with version suffixes (i.e. 1.0.0a) and libraries. Check out Using Version Suffixes for more information reporting version suffixes and Reporting Library Versions for advanced information.
That's it! Your add-on now supports OneVersion. If you do decide to add support for OneVersion, please send me a PM so I can add you to the growing list of supported add-ons. A link back to OneVersion from your own add-on would be appreciated too!
####Home ####Supported Addons ####FAQ ####Adding OneVersion Support ####OneVersion Events API ####Feature Roadmap