Beispiel #1
0
 public bool DeselectCharacter()
 {
     if (detailedMode == Mode.DETAILED)
     {
         detailedMode = Mode.LIST;
         supportList.FilterShow((x) => true);
         supportList.FilterDark((x) => false);
         for (int i = 0; i < playerData.stats.Count; i++)
         {
             supportList.GetEntry(i).SetSupportValue(null, null);
         }
         selectName.text   = "";
         selectIcon.sprite = null;
         supportList.ForcePosition(oldIndex);
         return(false);
     }
     else if (detailedMode == Mode.PROMPT)
     {
         detailedMode = Mode.DETAILED;
         levelupPrompt.Click(false);
         return(false);
     }
     else
     {
         return(true);
     }
 }
Beispiel #2
0
    private void UpdateFilter()
    {
        WeaponType currentCategory = (WeaponType)categories.GetValue();

        if (currentCategory == WeaponType.C_HEAL)
        {
            entryList.FilterShow(x => { return(x.tuple.itemCategory == ItemCategory.CONSUME); });
        }
        else
        {
            entryList.FilterShow(x => { return(x.tuple.weaponType == currentCategory); });
        }
        UpdateCost();
        entryList.ForcePosition(0);
    }