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> 789Returns:usage—Amount <strong>of</strong> CPU time used by the scripting system (in milliseconds)since the UI was loaded or ResetCPUUsage() was last called (number)GetSelectedAuctionItemReturns the index <strong>of</strong> the currently selected item in an auction listing.index = GetSelectedAuctionItem(“list“)Auction selection is used only <strong>for</strong> display <strong>and</strong> internal recordkeeping in thedefault UI; it has no direct effect on other Auction APIs.Arguments:list—Type <strong>of</strong> auction listing (string)bidder—Auctions the player has bid onlist—Auctions the player can browse <strong>and</strong> bid on or buy outowner—Auctions the player placedReturns:index—Index <strong>of</strong> the currently selected auction item (number)GetSelectedBattlefieldReturns the index <strong>of</strong> the selected battleground instance in the queueing list.index = GetSelectedBattlefield()Selection in the battleground instance list is used only <strong>for</strong> display in the defaultUI <strong>and</strong> has no effect on other Battlefield APIs.Returns:index—Index <strong>of</strong> the selection in the battleground queue listing (1 <strong>for</strong> thefirst available instance, or between 2 <strong>and</strong> GetNumBattlefields() <strong>for</strong> otherinstances) (number)GetSelectedDisplayChannelReturns the selected channel in the channel list display.index = GetSelectedDisplayChannel()Returns:index—Index <strong>of</strong> the selected channel in the display channel list (between 1 <strong>and</strong>GetNumDisplayChannels()) (number)GetSelectedFactionReturns which faction entry is selected in the reputation UI.index = GetSelectedFaction()Selection has no bearing on other faction-related APIs; this function merelyfacilitates behaviors <strong>of</strong> Blizzard’s reputation UI.Returns:index—Index <strong>of</strong> an entry in the faction list; between 1 <strong>and</strong> GetNumFactions()(number)

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

Saved successfully!

Ooh no, something went wrong!