View Single Post
05-19-17, 12:56 PM   #7
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
You can use C_NewItems to query whether an item is new or not, then clear it manually.

Lua Code:
  1. isNewItem = C_NewItems.IsNewItem(bag, slot)
  2. C_NewItems.RemoveNewItem(bag, slot)
  3. C_NewItems.ClearAll()

Note that in the case of stacks, your stack will not be flagged as new when you loot another item of that type.
The default UI uses this class to highlight new items in your bags, and it also clears all new items whenever you close the container they're in. You'll have to do the lookup on BAG_UPDATE and clear them yourself before the container frame gets a chance to do it. This way you can track any new item that you acquire.
__________________

Last edited by MunkDev : 05-19-17 at 12:59 PM.
  Reply With Quote