public InventoryPanel(int x, int y, int width, int height) : base(x, y, width, height) { Hero.instance.inventory.InventoryChanged += updateInventory; allEntries = new ItemEntry[Inventory.NUM_TYPE_ITEMS]; }