private void OnClickExtractOK(object obj) { this.m_SolExtract.Clear(); base.ShowExtractSol(false); if (this._selectedDummySoldierList == null) { return; } NewListBox listBox = this.GetListBox(); listBox.Clear(); SolComposeDirection solComposeDirection = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.SOLCOMPOSE_DIRECTION_DLG) as SolComposeDirection; if (solComposeDirection == null) { return; } int[] array = new int[10]; bool[] array2 = new bool[10]; for (int i = 0; i < this._selectedDummySoldierList.Count; i++) { array[i] = (int)Mathf.Ceil((float)UnityEngine.Random.Range(10, 90)); array[i] = array[0] - array[0] % 10; array2[i] = false; } solComposeDirection.SetExtractData(array2, array); solComposeDirection.AddCloseCallback(new OnCloseCallback(this.OnExtractDirectionEnd)); }
private void OnClickRemove(IUIObject obj) { this.m_SolExtract.Clear(); base.ShowExtractSol(false); NewListBox listBox = this.GetListBox(); listBox.Clear(); }
public NewListBox SetCostumeListBox(CostumeRoom_Dlg owner) { NewListBox newListBox = owner.GetControl("NewListBox_CostumeList") as NewListBox; newListBox.Reserve = false; newListBox.Clear(); newListBox.AddValueChangedDelegate(new EZValueChangedDelegate(owner._costumeListSetter.OnCostumeListClick)); return(newListBox); }
private void SetCostumeListBox(NewListBox costumeListBox, List <CharCostumeInfo_Data> costumeDataList, int costumeKind) { if (costumeDataList == null || costumeDataList.Count == 0) { return; } costumeListBox.Clear(); foreach (CharCostumeInfo_Data current in costumeDataList) { if (current != null) { NewListItem item = new NewListItem(costumeListBox.ColumnNum, true, string.Empty); this.SetCostumeListBoxItem(ref item, current); costumeListBox.Add(item); } } costumeListBox.RepositionItems(); }
private void SetExtractSolBase(NkSoldierInfo solInfo, bool baseSolSetting, List <NkSoldierInfo> selectedDummySoldierList) { this.m_SolExtract.Clear(); this.m_SolExtract.Add(solInfo.GetSolID()); NewListBox listBox = this.GetListBox(); listBox.Clear(); if (baseSolSetting && selectedDummySoldierList != null) { foreach (NkSoldierInfo current in selectedDummySoldierList) { if (current != null) { listBox.Add(this.GetExtracteSolItem(current)); } } } base.ShowExtractSol(baseSolSetting); this.CalcDummyExtractData(solInfo); listBox.RepositionItems(); }
public void SetMySolList(ref NewListBox mySolKindListBox, ref List <NkSoldierInfo> solList) { if (solList == null) { return; } mySolKindListBox.Clear(); if (solList.Count == 0) { return; } foreach (NkSoldierInfo current in solList) { if (current != null) { NewListItem item = new NewListItem(mySolKindListBox.ColumnNum, true, string.Empty); this.SetMyCharListBoxItem(ref item, current); mySolKindListBox.Add(item); } } mySolKindListBox.RepositionItems(); }