WoW:BagId: Difference between revisions

58 bytes added ,  17 May 2008
m
(Make 2.0 changes seem less new. Document constant names and how you SHOULD code.)
Line 19: Line 19:


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


While the bank is opened:
While the bank is opened:
* BANK_CONTAINER is the bank window
* BANK_CONTAINER is the bank window
* NUM_BAG_SLOTS+1 -- 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.
Anonymous user