示例#1
0
    void onClick_Friend_Btn(GameObject caster)
    {
        m_TeamInviteGridCreator.ClearAll();

        Protocol.Instance.ReqFriendLevel();//消息返回后再创建

        m_ePeopletype = TeamDataManager.PeopleType.Firend;
        CreateGrids();
    }
示例#2
0
    void SetSelectStore(ETradeType tradeType)
    {
        //买
        if (tradeType == ETradeType.ETradeType_Buy)
        {
            m_dicMallItem     = DataManager.Manager <HomeDataManager>().BuyItemDic;
            m_lstHomeTradeTab = DataManager.Manager <HomeDataManager>().GetTabList(m_tradeType);
            m_dicHomeTradeTab = DataManager.Manager <HomeDataManager>().TabNameDic;

            m_label_AddRemove_Text.text = "购买数量:";
            m_label_Obtain_Text.text    = "消    耗:";
            m_label_Btn_name.text       = "购买";
        }

        //卖
        if (tradeType == ETradeType.ETradeType_Sell)
        {
            m_dicMallItem     = DataManager.Manager <HomeDataManager>().SellItemDic;
            m_lstHomeTradeTab = DataManager.Manager <HomeDataManager>().GetTabList(m_tradeType);
            m_dicHomeTradeTab = DataManager.Manager <HomeDataManager>().TabNameDic;

            m_label_AddRemove_Text.text = "出售数量:";
            m_label_Obtain_Text.text    = "获    得:";
            m_label_Btn_name.text       = "出售";
        }

        if (m_GridCreator != null)
        {
            m_GridCreator.ClearAll();                       //清除所有格子
        }
        CreateHomeTradeUI();
    }