RSS

Четверг, 14.11.2024, 19:21
Главная » WoW API » API Функции » Связанные с аддонами »

LoadAddOn

[ править ]
Loads a LoadOnDemand-capable addon.
[клоны]
Loads a LoadOnDemand-capable addon. If the given addon has dependencies which are also LoadOnDemand-capable, those addons will be loaded as well. This function will not load disabled addons.

Signature:
Code
loaded, reason = LoadAddOn("name") or LoadAddOn(index)

Arguments:
  • name - Name of an addon (name of the addon's folder and TOC file, not the Title found in the TOC) (string)
  • index - Index of an addon in the addon list (between 1 and GetNumAddOns()) (number)

Returns:
  • loaded - 1 if loading the addon was successful; otherwise nil (number)
  • reason - If the addon could not be loaded, an unlocalized string token indicating the reason for failure. Localized strings for display can be found by prepending "ADDON_"; e.g. ADDON_DEP_MISSING == "Dependency missing". (string)
      BANNED - Banned
    • CORRUPT - Corrupt
    • DEP_BANNED - Dependency banned
    • DEP_CORRUPT - Dependency corrupt
    • DEP_DISABLED - Dependency disabled
    • DEP_INCOMPATIBLE - Dependency incompatible
    • DEP_INSECURE - Dependency insecure
    • DEP_INTERFACE_VERSION - Dependcy out of date
    • DEP_MISSING - Dependency missing
    • DEP_NOT_DEMAND_LOADED - Dependency not loadable on demand
    • DISABLED - Disabled
    • INCOMPATIBLE - Incompatible
    • INSECURE - Insecure
    • INTERFACE_VERSION - Out of Date
    • MISSING - Missing
    • NOT_DEMAND_LOADED - Not loadable on demand

Также смотрите: Связанные с аддонами , Addon-related functions
Ссылки: http://wowprogramming.com/docs/api/LoadAddOn