Gaming
 

AxuItemMenus class

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 usage
function AxuItemMenus_AuctionItem_Test()
   return AuctionFrame:IsVisible() and
          not AxuItemMenus_class.inaccessible and
          not AxuItemMenus_class.quest and
          not AxuItemMenus_class.soulbound
end

The AxuItemMenus_class variable is filled with descriptive data about the item for which the menu was opened. It is initialized with Sea.wow.item.classifyInventoryItem and then some extra data is added into it:

AxuItemMenus_class.color contains the colour of the item, corresponding to its rarity. In some cases this may be nil.

AxuItemMenus_class.link contains the in-game hyper-link of the form item:6948:0:0:0 for the item. In some cases this may be nil.

AxuItemMenus_class.texture contains the name of the button texture for the item.

AxuItemMenus_class.strings contains the tooltip strings returned by Sea.wow.item.getInventoryItemInfoStrings for the item.

AxuItemMenus_class.readable is true or false depending on if the item can be "read".

AxuItemMenus_class.inaccessible is true if the item can't be accessed, such as when the item is viewed via MyBank when not at the bank, or when the item is viewed in the inspect window.


AxuItemMenus_class.cooldown and AxuItemMenus_class.repaircost are undocumented right now.