12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 27 ■ API <strong>Reference</strong> 873ListChannelByNameRequests the list <strong>of</strong> participants in a chat channel.ListChannelByName(“channel“) or ListChannelByName(channelIndex)Fires the CHAT_MSG_CHANNEL_LIST event listing the names <strong>of</strong> all characters inthe channel.Arguments:channel—Name <strong>of</strong> a channel (string)channelIndex—Index <strong>of</strong> a channel (number)ListChannelsRequests a list <strong>of</strong> channels joined by the player.Fires the CHAT_MSG_CHANNEL_LIST event listing the names <strong>and</strong> indices <strong>of</strong> allchannels joined by the player.LoadAddOnLoads a LoadOnDem<strong>and</strong>-capable addon.loaded, reason = LoadAddOn(“name“) or LoadAddOn(index)If the given addon has dependencies which are also LoadOnDem<strong>and</strong>-capable,those addons will be loaded as well. This function will not load disabledaddons.Arguments:name—Name <strong>of</strong> an addon (name <strong>of</strong> the addon’s folder <strong>and</strong> TOC file, not the Titlefound in the TOC) (string)index—Index <strong>of</strong> an addon in the addon list (between 1 <strong>and</strong> 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 tokenindicating the reason <strong>for</strong> failure. Localized strings <strong>for</strong> display can be found byprepending “ADDON_“; e.g.ADDON_DEP_MISSING == “Dependency missing“.(string)BANNED—BannedCORRUPT—CorruptDEP_BANNED—Dependency bannedDEP_CORRUPT—Dependency corruptDEP_DISABLED—Dependency disabledDEP_INCOMPATIBLE—Dependency incompatibleDEP_INSECURE—Dependency insecureDEP_INTERFACE_VERSION—Dependency out <strong>of</strong> dateDEP_MISSING—Dependency missingDEP_NOT_DEMAND_LOADED—Dependency not loadable on dem<strong>and</strong>DISABLED—DisabledINCOMPATIBLE—Incompatible

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!