private void SetSolEquipItem() { if (this.m_SelectSol == null) { this.m_ShowType = ReforgeSelectDlg.SHOWTYPE.SOLDER; return; } int num = 0; for (int i = 0; i < 6; i++) { ITEM item = this.m_SelectSol.GetEquipItemInfo().m_kItem[i].GetItem(); if (item != null) { if (item.m_nItemUnique > 0) { if (NrTSingleton <ItemManager> .Instance.GetItemInfo(item.m_nItemUnique) != null) { NewListItem item2 = new NewListItem(this.m_NewListBox.ColumnNum, true, string.Empty); this.SetItemColum(item, num++, ref item2); this.m_NewListBox.Add(item2); } } } } this.m_NewListBox.RepositionItems(); if (num == 0) { this.m_lbText.Visible = true; } else { this.m_lbText.Visible = false; } }
public void OnClickCancle(IUIObject obj) { this.m_ShowType = ReforgeSelectDlg.SHOWTYPE.SOLDER; this.m_SelectSol = null; this.SetColumFromShowType(); this.SetData(); }
public void SetData() { ReforgeSelectDlg.SHOWTYPE showType = this.m_ShowType; if (showType != ReforgeSelectDlg.SHOWTYPE.ITEM) { if (showType == ReforgeSelectDlg.SHOWTYPE.SOLDER) { this.SetSolData(); } } else { this.SetInvItemData(); } }
public void OnClickTab(IUIObject obj) { this.HideUIGuide(); this.closeButton.Visible = true; NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.REFORGECONFIRM_DLG); UIPanelTab uIPanelTab = obj as UIPanelTab; if (uIPanelTab.panel.index == uIPanelTab.panelManager.CurrentPanel.index) { return; } this.m_ShowType = (ReforgeSelectDlg.SHOWTYPE)uIPanelTab.panel.index; this.SetColumFromShowType(); this.SetData(); }