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> 943ShowMini<strong>World</strong>MapArrowFrameShows or hides the battlefield minimap’s player arrow.ShowMini<strong>World</strong>MapArrowFrame(show)Arguments:show—If the battlefield minimap’s player arrow should be shown (boolean)ShowRepairCursorPuts the cursor in item repair mode.Unlike most other cursor functions, this functions changes the behavior as wellas the appearance <strong>of</strong> the mouse cursor: while repair mode is active, callingPickupContainerItem() or PickupInventoryItem() will attempt to repairthe item (<strong>and</strong> deduct the cost <strong>of</strong> such from the player’s savings) instead <strong>of</strong>putting it on the cursor.Only has effect while the player is interacting with a vendor which canper<strong>for</strong>m repairs; i.e. between the MERCHANT_SHOW <strong>and</strong> MERCHANT_CLOSEDevents, <strong>and</strong> only if CanMerchantRepair() returns 1.ShowingCloakReturns whether the player’s cloak is displayed.isShown = ShowingCloak()Determines not only the appearance <strong>of</strong> the player character on the local client,but the way other players see the character as well.Returns:isShown—1 if the player’s cloak is shown; otherwise nil (1nil)ShowingHelmReturns whether the player’s headgear is displayed.isShown = ShowingHelm()Determines not only the appearance <strong>of</strong> the player character on the local client,but the way other players see the character as well.ProtectedReturns:isShown—1 if the player’s headgear is shown; otherwise nil (1nil)SignPetitionSigns the currently <strong>of</strong>fered petition.SitSt<strong>and</strong>OrDescendStartCauses the player character to sit down if st<strong>and</strong>ing <strong>and</strong> vice versa (or beginsdescent if swimming or flying).Used by the SITORSTAND binding, which also controls descent whenswimming or flying.SocketContainerItemOpens an item from the player’s bags <strong>for</strong> socketing.SocketContainerItem(container, slot)

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

Saved successfully!

Ooh no, something went wrong!