Wowpedia
Advertisement
Wowpedia
230,045
pages
Game Flavors
Links
Patch
Added in 5.4.0 / 1.13.2

Returns whether an inventory slot holds a newly-acquired item.

isNewItem = C_NewItems.IsNewItem(bag, slot)

Arguments

bag 
number - BagID of the container.
slot 
number - ID of the inventory slot within the container.

Returns

isNewItem 
boolean - Returns true if the inventory slot holds a newly-acquired item; otherwise false (empty slot or a non-new item).

Patch history

See also

  • C_NewItems.RemoveNewItem(bag, slot) - Used by FrameXML/ContainerFrame.lua to clear the new-item flag after interacting with the new item or closing the bags.
  • IsBattlePayItem(bag, slot) - Used by FrameXML/ContainerFrame.lua to emphasise recent purchases from the In-Game Store.[2]

References

 
  1. ^ 2013-09-09, ContainerFrame.lua, version 5.4.0.17359, near line 330, archived at Townlong-Yak
  2. ^ 2013-09-09, ContainerFrame.lua, version 6.0.2.19033, near line 330, archived at Townlong-Yak