Esempio n. 1
0
    private void RefreshPanel()
    {
        foreach (ItemSlot slot in slots)
        {
            slot.Hide();
        }

        if (current_category == null)
        {
            return;
        }

        //Show all items of a category
        List <CraftData> items = CraftData.GetAllCraftableInGroup(current_category);

        for (int i = 0; i < items.Count; i++)
        {
            if (i < slots.Length)
            {
                CraftData item = items[i];
                ItemSlot  slot = slots[i];
                slot.SetSlot(item, 1, false);
                slot.AnimateGain();
            }
        }
    }