Mikk38024@legacy41558003 (talk | contribs) (upgrade fix) |
Mikk38024@legacy41558003 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
− | {{wowapi}}__NOTOC__ |
||
− | {| cellpadding=0 cellspacing=0 style="background-color:transparent;" |
||
− | |- valign=top |
||
− | |style="background-color:#282828; border:1px solid black;"|<div style="position:relative; left: 1px;"><imagelink>http://81.233.236.26/wowapi-bar-top.gif</imagelink></div><imagelink>http://81.233.236.26/wowapi2.gif</imagelink> |
||
− | ||<div style="padding-top: 1px; padding-right: 2px;"><imagelink>http://81.233.236.26/wowapi-bar-topright.gif</imagelink></div> |
||
− | |<div style="float:left; height: 5em; width: 2em;"></div> |
||
− | Determine if an AddOn has been loaded. |
||
− | |||
− | loaded = IsAddOnLoaded(index or "name") |
||
− | == Parameters == |
||
− | === Arguments === |
||
− | :(index or "name") |
||
− | |||
− | :;index : Integer - The index of the AddOn in the user's AddOn list. Note that you cannot access Blizzard-provided AddOns through this mechanism. |
||
− | :;name : String - The name of the AddOn to be queries. You can access Blizzard-provided AddOns through this mechanism. |
||
− | === Returns === |
||
− | :loaded |
||
− | |||
− | :;loaded : Flag - Indicates if the AddOn has been loaded, 1 if it has been, nil if it has not. |
||
− | |||
− | == Example == |
||
− | if (IsAddOnLoaded("AddonName")) then |
||
− | do stuff |
||
− | end |