WoW:API GetAddOnInfo: Difference between revisions
Jump to navigation
Jump to search
GetAddOnInfo - Documentation by Flickering
(Removed Categories) |
(→Returns: Updated reason/security) |
||
Line 18: | Line 18: | ||
:;enabled : Flag - Indicates if the AddOn is currently enabled, 1 if it is, nil if it is not. | :;enabled : Flag - Indicates if the AddOn is currently enabled, 1 if it is, nil if it is not. | ||
:;loadable : Flag - Indicates if the AddOn is eligible to be loaded, 1 if it is, nil if it is not. | :;loadable : Flag - Indicates if the AddOn is eligible to be loaded, 1 if it is, nil if it is not. | ||
:;reason : String - The reason why the AddOn cannot be loaded. This is nil if the addon is loadable, otherwise it contains a code indicating the reason. (Observed reason codes: "DISABLED") | :;reason : String - The reason why the AddOn cannot be loaded. This is nil if the addon is loadable, otherwise it contains a code indicating the reason. (Observed reason codes: "DISABLED" and "MISSING") | ||
:;security : String - | :;security : String - Indicates the security status of the AddOn. This is currently "INSECURE" for all user provided addons and "SECURE" for Blizzard_* AddOns. | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
{{Template:WoW API}} | {{Template:WoW API}} |
Revision as of 18:04, 6 August 2006
Get information about an AddOn.
name, title, notes, enabled, loadable, reason, security = GetAddOnInfo(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
- name, title, notes, enabled, loadable, reason, security
- name
- String - The name of the AddOn.
- title
- String - The title of the AddOn from its .toc file (presumably this is the appropriate localized one).
- notes
- String - The notes about the AddOn from its .toc file (presumably this is the appropriate localized one).
- enabled
- Flag - Indicates if the AddOn is currently enabled, 1 if it is, nil if it is not.
- loadable
- Flag - Indicates if the AddOn is eligible to be loaded, 1 if it is, nil if it is not.
- reason
- String - The reason why the AddOn cannot be loaded. This is nil if the addon is loadable, otherwise it contains a code indicating the reason. (Observed reason codes: "DISABLED" and "MISSING")
- security
- String - Indicates the security status of the AddOn. This is currently "INSECURE" for all user provided addons and "SECURE" for Blizzard_* AddOns.