m
→How do I designate a Dependent Addon?
m (→How do I designate a Dependent Addon?: fixed formatting) |
|||
| Line 10: | Line 10: | ||
Example Standalone Addon .toc file: | Example Standalone Addon .toc file: | ||
<pre>##Interface: 1300 | |||
##Title: myAddon | ##Title: myAddon | ||
##Description: Does stuff</ | ##Description: Does stuff</pre> | ||
Example Dependent Addon .toc file: | Example Dependent Addon .toc file: | ||
<pre>##Interface: 1300 | |||
##Title: myAddon | ##Title: myAddon | ||
##Description: Does stuff | ##Description: Does stuff | ||
##Dependencies: ParentAddon, OtherAddon</ | ##Dependencies: ParentAddon, OtherAddon</pre> | ||
== What if other Addons only improve my Addon? == | == What if other Addons only improve my Addon? == | ||
| Line 25: | Line 25: | ||
If an Addon's code is only used to somehow improve the usability/functionality of your Addon, but is not ''required'' for it to work, you can use the "OptionalDeps:" tag in your .toc file to have those Addons loaded prior to your own: | If an Addon's code is only used to somehow improve the usability/functionality of your Addon, but is not ''required'' for it to work, you can use the "OptionalDeps:" tag in your .toc file to have those Addons loaded prior to your own: | ||
##Interface: 1300 | <pre>##Interface: 1300 | ||
##Title: myAddon | ##Title: myAddon | ||
##Description: Does stuff | ##Description: Does stuff | ||
##Dependencies: ParentAddon, OtherAddon | ##Dependencies: ParentAddon, OtherAddon | ||
##OptionalDeps: MakeMyAddonCooler | ##OptionalDeps: MakeMyAddonCooler</pre> | ||
Keep in mind that you must handle any errors that may occur if the user does not have the Optionally Dependent Addon. | Keep in mind that you must handle any errors that may occur if the user does not have the Optionally Dependent Addon. | ||