Gaming
 

AxuItemMenus this

From WoWWiki

<< AxuItemMenus

Image:Addonicon.gif
WoWWiki Hosted AddOn Sub-Page

This article is a part of the documentation of the AxuItemMenus function library

-- Example
   if (AxuItemMenus_this and AxuItemMenus_this.SplitStack) then
       AxuItemMenus_this.SplitStack(AxuItemMenus_this, 7);
   end

The variable AxuItemMenus_this is a pointer to the ContainerItemButton of the item for which the menu was opened.

Since AxuItemMenus now supports AddOns that replace or enhance the containers (such as AllInOneInventory, MyBank and MyInventory), the button datastructure can be different too, so please always test if it has the data member you need before blindly using it.

It is also conceivable that in the future we will support AddOns that don't have buttons representing items (such as SellValue or ItemsMatrix). In such cases AxuItemMenus_this can even be nil.