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> 689GetCurrencyListSizeReturns the number <strong>of</strong> list entries to show in the Currency UI.numEntries = GetCurrencyListSize()Returns:numEntries—Number <strong>of</strong> currency types (including category headers) to beshown in the Currency UI (number)GetCurrentArenaSeasonReturns a number identifying the current arena season.season = GetCurrentArenaSeason()New arena seasons begin every few months, resetting team rankings <strong>and</strong>providing new rewards.Returns:season—Number identifying the current arena season (number)GetCurrentBindingSetReturns which set <strong>of</strong> key bindings is currently in use.bindingSet = GetCurrentBindingSet()Returns:bindingSet—Set <strong>of</strong> bindings currently in use (number)1—Key bindings shared by all characters2—Character specific key bindingsGetCurrentGuildBankTabReturns the currently selected guild bank tab.GetCurrentGuildBankTab(currentTab)Arguments:currentTab—Index <strong>of</strong> the selected guild bank tab (between 1 <strong>and</strong>GetNumGuildBankTabs()) (number)GetCurrentKeyBoardFocusReturns the frame currently h<strong>and</strong>ling keyboard input.frame = GetCurrentKeyBoardFocus()Typically an EditBoxReturns:frame—Frame currently h<strong>and</strong>ling keyboard input, or nil if no frame is currentlyfocused (table)Example:# put this in a macro <strong>and</strong> try running it (from an action bar or# somesuch) while typing in different text boxes/run frame = GetCurrentKeyBoardFocus ()iprint(frame <strong>and</strong> frame:GetName() or “no focus“)

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

Saved successfully!

Ooh no, something went wrong!