public void Initialize() { SlotView.ResetSlots(); SlotView.Items.Clear(); foreach (EquipmentSlot equipmentSlot in Stats.Equipment) { if (equipmentSlot.Item != null) { SlotView.AddItem(equipmentSlot.Item, Inventory.Amount(equipmentSlot.Item), equipmentSlot.Name, updateOnly: true); } } UpdateDisplay(); }
public void ItemAddedToInventory(Inventory sender, ItemEventArgs e) { SlotView.AddItem(e.Item, e.Amount); }