Lore archive · Warcraft Wiki, 2023 dump
API OpenAllBags
Last wiki revision 2022-10-29
- OpenAllBags opens the backpack and bags, unless at least one bag (other than the backpack) was already open.
- CloseAllBags closes the backpack and bags, unless another frame had reserved them open
- ToggleAllBags opens the backpack, bags and bank bags, unless all were open and then it closes them all
OpenAllBags( [frame][, forceUpdate] ) CloseAllBags( [frame][, forceUpdate] ) ToggleAllBags
- frame : Object - Handle to the frame requesting OpenAllBags, to reserve this open state and thus prevent other frames from executing CloseAllBags
- forceUpdate : Boolean - Optional flag to force ContainerFrame_UpdateAll should execution halt part-way through the function.
- OpenAllBags will remember the frame who requested that all bags open, and block CloseAllBags until called by the same frame
- forceUpdate does not change the open/close state, but instead guarantees the containers will execute their Update functions even if either of the following happen:
- OpenAllBags does nothing (a bag was already open); or
- CloseAllBags does nothing (another frame reserved the open state).
- ToggleAllBags disregards everything and forces all bags to either open or closed
Source
https://warcraft.wiki.gg/wiki/API_OpenAllBags · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.