Exemplo n.º 1
0
    public void InitList(TeamRoster currentRoster)
    {
        foreach (MinionPoolGUIEntry entry in allEntries)
        {
            Destroy(entry.gameObject);
        }
        allEntries.Clear();

        TeamPool pool = Core.GetPlayerProfile().pool;

        foreach (MinionTemplate template in Core.GetMinionTemplateManager().GetFullList())
        {
            MinionPoolGUIEntry entry = Instantiate <MinionPoolGUIEntry>(prefab);
            entry.template              = template;
            entry.icon.sprite           = template.icon;
            entry.typeIcon.sprite       = typeIcons [(int)template.GetSlotType()];
            entry.typeBackground.sprite = typeBackgrounds [(int)template.GetSlotType()];
            entry.transform.SetParent(contentBox);
            entry.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f);
            allEntries.Add(entry);
        }

        UpdateList(pool);
        ApplyFilters(Filters.instance);
    }
Exemplo n.º 2
0
 public void UnhoverPoolEntry()
 {
     hoveringOverPoolEntry = null;
     if (dragDropSelection == null)
     {
         hoverBlock.SetMinion(null);
     }
 }
Exemplo n.º 3
0
 public void HoverPoolEntry(MinionPoolGUIEntry entry)
 {
     if (dragDropSelection == null)
     {
         hoveringOverPoolEntry = entry;
         hoverBlock.SetMinion(entry.template);
         SetComparisonType(entry.template.GetSlotType());
     }
 }