API OpenAllBags

From Wowpedia
Jump to: navigation, search
"I" iconThis function is implemented by FrameXML in FrameXML/ContainerFrame.lua.
OpenAllBags (frame);

Parameters

frame
The frame that is responsible for opening the bags. Doesn't affect the operation of this function but sets an internal variable that affects other container frame functions. Can be nil.

Details

  • I use this in a simple macro that quickly opens all bags. This is useful since when activated, it will open the remnant bags that did not opened when talking to a vendor or opening your bank account without closing the backpack.
/script OpenAllBags();
  • Note that this function was changed in patch 4.1. It used to take a boolean parameter called forceOpen. Addons that hook OpenAllBags need to modify their hooked version to mirror this change.