WoW:API ToggleBag: Difference between revisions
Jump to navigation
Jump to search
ToggleBag -Documentation by AlexanderYoshi-
mNo edit summary |
mNo edit summary |
||
Line 27: | Line 27: | ||
: Opens or closes the specified bag. | : Opens or closes the specified bag. | ||
: NOTE: | |||
: If toggling the backpack with the keyboard, this function is called when opening but NOT when closing. Closing appears to be done by ToggleBackpack(). However, if the mouse is used to close the Backpack then this function does respond. | |||
---- | ---- |
Revision as of 18:43, 15 September 2005
Opens or closes the specified bag.
ToggleBag(bagNum);
- Arguments
- (Number bagNum)
- bagNum
- The number of which bag you want to toggle open or close
- Returns
- nil
- Example
ToggleBag(2);
- Result
- Description
- Opens or closes the specified bag.
- NOTE:
- If toggling the backpack with the keyboard, this function is called when opening but NOT when closing. Closing appears to be done by ToggleBackpack(). However, if the mouse is used to close the Backpack then this function does respond.