Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetAddOnEnableState

Last wiki revision 2023-11-08

Get the enabled state of an addon for a character enabledState = GetAddOnEnableState([character], addon)

  • character: - The name of the character to check against or nil.
  • addon:number|string - The index of the AddOn in the user's AddOn list, from 1 to GetNumAddOns. Or the name of the AddOn to be queried. You can access Blizzard addons by name.
  • enabledState: - The enabled state of the addon.
  • 0 - disabled
  • 1 - enabled for some
  • 2 - enabled
  • This is primarily used by the default UI to set the checkbox state in the AddOnList
  • A return of 1 is only possible if character is nil

Source

https://warcraft.wiki.gg/wiki/API_GetAddOnEnableState · 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.