WoW:API OpenAllBags: Difference between revisions
Jump to navigation
Jump to search
m (→Parameters) |
m (framexmlfunc template and correctified some things. Removed my bugged function hook.) |
||
| Line 1: | Line 1: | ||
{{framexmlfunc|FrameXML/ContainerFrame.lua}} | |||
{{wowapi}} | {{wowapi}} | ||
=== Function === | === Function === | ||
''OpenAllBags( | ''OpenAllBags(forceOpen);'' | ||
---- | ---- | ||
=== Parameters === | === Parameters === | ||
:([forceOpen]) | |||
; nil : Leaving the ( ) empty will enable the ''toggle'' function of the macro. | |||
:: Note: This will close all of your bags if they're all open. If you want to open all of your bags and keep them open when the event fires a second time while the bags are still open, call ''OpenAllBags''('''true''') | |||
; true : Opens all bags including the quiver. | ; true : Opens all bags including the quiver. | ||
; false : | ; false : Does the same thing as '''nil'''. | ||
---- | ---- | ||
=== Details === | === 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. | * 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();'' | |||
* It also opens the quiver. To override this, you can add | |||
It also opens the quiver. To override this, you can add | ''/script [[API_ToggleBag|ToggleBag]](''quiver position number'');'' | ||
to the macro but unfortunately, when you will use the macro again, it will close all bags BUT open the quiver.<br>I couldn't find anyway around yet. | to the macro but unfortunately, when you will use the macro again, it will close all bags BUT open the quiver.<br>I couldn't find anyway around yet. | ||
* This function does ''not'' open the Key Ring. | |||
Revision as of 13:18, 21 July 2007
← WoW API < OpenAllBags
This function is implemented in Lua here FrameXML/ContainerFrame.lua.
← WoW API < OpenAllBags
Function
OpenAllBags(forceOpen);
Parameters
- ([forceOpen])
- nil
- Leaving the ( ) empty will enable the toggle function of the macro.
- Note: This will close all of your bags if they're all open. If you want to open all of your bags and keep them open when the event fires a second time while the bags are still open, call OpenAllBags(true)
- true
- Opens all bags including the quiver.
- false
- Does the same thing as 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();
- It also opens the quiver. To override this, you can add
/script ToggleBag(quiver position number);
to the macro but unfortunately, when you will use the macro again, it will close all bags BUT open the quiver.
I couldn't find anyway around yet.
- This function does not open the Key Ring.