WoW:API BankButtonIDToInvSlotID: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
{{wowapi}}
{{wowapi}}


  Map a bank item button or bag to an inventory slot button for use in inventory functions.
Map a bank item button or bag to an inventory slot button for use in inventory functions.


  invSlot = BankButtonIDToInvSlotID(buttonID, isBag)
  invSlot = BankButtonIDToInvSlotID(buttonID, isBag)

Revision as of 18:11, 14 April 2008

WoW API < BankButtonIDToInvSlotID

Map a bank item button or bag to an inventory slot button for use in inventory functions.

invSlot = BankButtonIDToInvSlotID(buttonID, isBag)

Parameters

Arguments

buttonID
Number - bank item/bag ID.
isBag
1 if buttonID is a bag, nil otherwise. Same result as ContainerIDToInventoryID, except this one only works for bank bags and is more awkward to use.

Returns

invSlot
An inventory slot ID that can be used in other inventory functions