コード例 #1
0
ファイル: SupportList.cs プロジェクト: parrexion/Fried-Embrum
 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);
     }
 }
コード例 #2
0
 private void UpdateListDarkness()
 {
     entryList.FilterDark((e) => { return(e.done || e.upgrade.scrap > totalScrap.value || e.upgrade.cost > totalMoney.value); });
 }