WoW:BagId: Difference between revisions

23 bytes added ,  14 October 2010
no edit summary
m (added tokens bag info)
No edit summary
Line 20: Line 20:


* 0 is your backpack
* 0 is your backpack
* 1 to NUM_BAG_SLOTS are your bags (NUM_BAG_SLOTS defined in FrameXML\BankFrame.lua, line 2)
* 1 to NUM_BAG_SLOTS are your bags
* KEYRING_CONTAINER is the keyring
* KEYRING_CONTAINER is the keyring


Line 27: Line 27:
* NUM_BAG_SLOTS+1 to NUM_BAG_SLOTS+NUM_BANKBAGSLOTS are your bank bags
* NUM_BAG_SLOTS+1 to NUM_BAG_SLOTS+NUM_BANKBAGSLOTS are your bank bags


This follows the way [[FrameXML]] works. Future changes to APIs are less likely to make your addon break if you follow it.
This follows the way [[FrameXML]] works. Future changes to APIs are less likely to make your addon break if you follow it.  Many of these globals are defined in FrameXML\Constants.lua, if you're curious.
Anonymous user