Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API LoadAddOn

Last wiki revision 2023-08-02

Loads the specified LoadOnDemand addon. loaded, reason = LoadAddOn(index or name)

  • loaded: - If the AddOn is succesfully loaded or was already loaded.
  • reason: - Locale-independent reason why the AddOn could not be loaded e.g., otherwise returns if the addon was loaded.
  • Requires the addon to have the LoadOnDemand TOC field specified.
  • 1) LoadOnDemand: 1
  • LoadOnDemand addons are useful for reducing loading screen times by loading only when necessary, like with the different DeadlyBossMods addons/submodules.

These have corresponding globalstrings when prefixed with

  • Attempts to load a LoadOnDemand addon. If the addon is disabled, it will try to enable it first.

/run LoadAddOn("Blizzard_AchievementUI"); AchievementFrame_ToggleAchievementFrame;

  • Manually loads and shows the Blizzard Achievement UI addon.

Source

https://warcraft.wiki.gg/wiki/API_LoadAddOn · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.