m
→How you should code
(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 | * 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+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. | ||