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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 27 ■ API <strong>Reference</strong> 751GetNumDisplayChannelsReturns the number <strong>of</strong> entries in the channel list display.channelCount = GetNumDisplayChannels()Returns:channelCount—Number <strong>of</strong> channels <strong>and</strong> group headers to be displayed in thechannel list (number)GetNumDungeonMapLevelsReturns the number <strong>of</strong> map images <strong>for</strong> the world map’s current zone.numLevels = GetNumDungeonMapLevels()Used in zones with more than one ‘‘floor’’ or area such as Dalaran <strong>and</strong> severalWrath <strong>of</strong> the Lich King dungeons <strong>and</strong> raids.Returns:numLevels—Number <strong>of</strong> map images (number)GetNumEquipmentSetsReturns the number <strong>of</strong> saved equipment sets.numSets = GetNumEquipmentSets()Returns:numSets—Number <strong>of</strong> saved equipment sets (number)GetNumFactionsReturns the number <strong>of</strong> entries in the reputation UI.numFactions = GetNumFactions()Entries in the reputation UI can be major group headers (Classic, BurningCrusade, Wrath <strong>of</strong> the Lich King, Inactive, etc.), the sub-group headers withinthem (Alliance Forces, Steamwheedle Cartel, Horde Expedition, Shattrath City,etc.), or individual factions (Darkmoon Faire, Orgrimmar, Honor Hold, KirinTor, etc.).This function returns not the total number <strong>of</strong> factions (<strong>and</strong> headers) known,but the number which should currently be visible in the UI according to theexp<strong>and</strong>ed/collapsed state <strong>of</strong> headers.Returns:numFactions—The number <strong>of</strong> visible factions <strong>and</strong> headers (number)GetNumFramesReturns the number <strong>of</strong> existing Frame objects (<strong>and</strong> derivatives).numFrames = GetNumFrames()Only counts Frame objects <strong>and</strong> derivatives there<strong>of</strong> (e.g. Button, Minimap, <strong>and</strong>StatusBar; but not FontString, AnimationGroup, <strong>and</strong> Texture).Returns:numFrames—Number <strong>of</strong> existing Frame objects (<strong>and</strong> derivatives) (number)

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

Saved successfully!

Ooh no, something went wrong!