WoW API: GetInboxNumItems

From AddOn Studio
Revision as of 08:32, 13 August 2009 by WoWWiki>Haghala (Uppdated with an Example and Changes in 3.2)
Jump to navigation Jump to search

WoW API < GetInboxNumItems

numItems, totalItems = GetInboxNumItems()

Reports the number of messages in the client's inbox.

Example

if ( totalItems > numItems) then
 InboxTooMuchMail:Show();
else
  InboxTooMuchMail:Hide();
end 

Details

Uppdated with totalItems in Patch 3.2

After CheckInbox() is called and the inbox populated, this function will report the number of items in the user's inbox.

You access items in the inbox using GetInboxHeaderInfo().

FIXME - Requires that the mailbox window is open?
FIXME - Sample code showing use of the mail when at the mailbox or out in the world.