InventoryView

From Virtual World Web Wiki
Jump to: navigation, search
  • This is a JavaScript visible object

Remarks [edit]

Events

OnChanged()
Fired whenever any container is added or removed, potentially causing multiple items to be added/removed simultaneously.
OnItemAdded()
Event fired when a new item is added to your inventory
OnItemRemoved()
Event fired when an item is removed from your inventory
OnItemUpdated()
Event fired when an item in your inventory is modified

Methods

void AddFilter(string filter)
Adds an OR filter to the inventory view (i.e.: show me items that are Shirts OR Pants)
void AddGroupFilter(string filter)
Adds an AND filter to the inventory view (i.e.: show me items that are Shirts AND Red)
void ClearFilters()
Clear all OR filters on this view
void ClearGroupFilters()
Clear all AND filters on this view
JSInventoryItem GetItem(string itemID)
Returns the item matching a given TemplateID
IEnumerable<JSInventoryItem> GetItems()
Return all items visible to this filtered view
void RemoveFilter(string filter)
Removes an OR filter from the inventory view
void RemoveGroupFilter(string filter)
Removes an AND filter from the inventory view