private void ClearContent()
 {
     if (rowPool != null)
     {
         rowPool.ClearAll();
     }
     identityRowMap.Clear();
 }
예제 #2
0
 protected override void OnShow(bool show)
 {
     base.OnShow(show);
     if (!show)
     {
         buttonPool.ClearAll();
         buttonFileMap.Clear();
     }
 }
예제 #3
0
 public void Open()
 {
     base.gameObject.SetActive(true);
     buttonPool.ClearAll();
     foreach (MinionIdentity item in Components.MinionIdentities.Items)
     {
         KButton      btn = buttonPool.GetFreeElement(buttonParent, true);
         CrewPortrait componentInChildren = btn.GetComponentInChildren <CrewPortrait>();
         componentInChildren.SetIdentityObject(item, true);
         portraitList.Add(componentInChildren);
         btn.ClearOnClick();
         btn.onClick += delegate
         {
             SelectDuplicant(btn);
         };
         buttonIdentityMap.Add(btn, item);
     }
 }
예제 #4
0
 private void RefreshFiles()
 {
     if (savenameRowPool != null)
     {
         savenameRowPool.ClearAll();
     }
     if (fileButtonMap != null)
     {
         fileButtonMap.Clear();
     }
     GetFilesList();
     if (saveFiles.Count > 0)
     {
         foreach (KeyValuePair <string, List <SaveGameFileDetails> > saveFile in saveFiles)
         {
             AddExistingSaveFile(saveFile.Key, saveFile.Value);
         }
     }
     InfoText.text               = string.Empty;
     CyclesSurvivedValue.text    = "-";
     DuplicantsAliveValue.text   = "-";
     deleteButton.isInteractable = false;
     loadButton.isInteractable   = false;
 }
 private void DestroyDisplay()
 {
     entryPool.ClearAll();
 }