Exemplo n.º 1
0
    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;
        }
    }
Exemplo n.º 2
0
 public void OnClickCancle(IUIObject obj)
 {
     this.m_ShowType  = ReforgeSelectDlg.SHOWTYPE.SOLDER;
     this.m_SelectSol = null;
     this.SetColumFromShowType();
     this.SetData();
 }
Exemplo n.º 3
0
 public void SetData()
 {
     ReforgeSelectDlg.SHOWTYPE showType = this.m_ShowType;
     if (showType != ReforgeSelectDlg.SHOWTYPE.ITEM)
     {
         if (showType == ReforgeSelectDlg.SHOWTYPE.SOLDER)
         {
             this.SetSolData();
         }
     }
     else
     {
         this.SetInvItemData();
     }
 }
Exemplo n.º 4
0
    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();
    }