private void ClearContent() { if (rowPool != null) { rowPool.ClearAll(); } identityRowMap.Clear(); }
protected override void OnShow(bool show) { base.OnShow(show); if (!show) { buttonPool.ClearAll(); buttonFileMap.Clear(); } }
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); } }
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(); }