Exemplo n.º 1
0
    void UpdataTypeGrid(int index)
    {
        List <RankTypeDataBase> d       = rankDic[(uint)(index + 1)];
        UICtrTypeGrid           tabGrid = mSecondTabCreator.GetGrid <UICtrTypeGrid>(index);

        if (tabGrid != null)
        {
            tabGrid.SetGridData((uint)index);
            tabGrid.SetName(d[0].mainName);
            tabGrid.SetRedPointStatus(false);
        }
    }
Exemplo n.º 2
0
 void ShowUIByToggle(ConsignmentItemMode type)
 {
     m_ctor_SellItemPriceList.SetVisible(false);
     m_saleUIToggle = type;
     if (type == ConsignmentItemMode.Buy)
     {
         m_trans_CommonContent.gameObject.SetActive(true);
         m_trans_BuyMoneyContent.gameObject.SetActive(true);
         m_trans_SellMoneyContent.gameObject.SetActive(false);
         m_trans_AccountContent.gameObject.SetActive(false);
         ResetArrow(type);
         InitText();
         if (mSecondTabCreator != null)
         {
             UICtrTypeGrid grid = mSecondTabCreator.GetGrid <UICtrTypeGrid>(0);
             if (grid != null)
             {
                 grid.SetName("我的关注");
             }
         }
     }
     else if (type == ConsignmentItemMode.Sell)
     {
         m_trans_CommonContent.gameObject.SetActive(true);
         m_trans_BuyMoneyContent.gameObject.SetActive(false);
         m_trans_SellMoneyContent.gameObject.SetActive(true);
         m_trans_AccountContent.gameObject.SetActive(false);
         ResetArrow(type);
         InitText();
     }
     else if (type == ConsignmentItemMode.Account)
     {
         m_trans_CommonContent.gameObject.SetActive(false);
         m_trans_BuyMoneyContent.gameObject.SetActive(false);
         m_trans_SellMoneyContent.gameObject.SetActive(false);
         m_trans_AccountContent.gameObject.SetActive(true);
     }
     else if (type == ConsignmentItemMode.ShowItem)
     {
         if (mSecondTabCreator != null)
         {
             UICtrTypeGrid grid = mSecondTabCreator.GetGrid <UICtrTypeGrid>(0);
             if (grid != null)
             {
                 grid.SetName("所有公示");
             }
         }
     }
 }