private void OnInitDeal(BuyResponse resp)
 {
     m_LabelOtherName.text = resp.SellerName;
     m_SpriteMyIcon.gameObject.SetActive(true);
     m_SpriteMyIcon.spriteName = MessageTreeLogic.ConvertIdToName(resp.ItemId);
     m_SpriteOtherIcon.gameObject.SetActive(false);
 }
Exemple #2
0
    public void SetIcon2Sprite(int id)
    {
        string name = MessageTreeLogic.ConvertIdToName(id);

        m_SpriteIcon2.gameObject.SetActive(!string.IsNullOrEmpty(name));
        m_SpriteIcon2.spriteName = name;
    }
 private void OnBidCallBack(BidResponse res)
 {
     if (res.Success)
     {
         m_bIsWaitingBid = true;
         m_SpriteOtherIcon.gameObject.SetActive(true);
         m_SpriteOtherIcon.spriteName = MessageTreeLogic.ConvertIdToName(m_iCurrentSellItemId);
     }
     else
     {
         TipManager.Instance.Alert("", "你已经掉线", "OK", (res2) => { MessageTreeLogic.Instance.ClearSale(); });
     }
 }
 private void OnBuyerBid(int id)
 {
     SetButtonStatus(true);
     m_SpriteOtherIcon.gameObject.SetActive(true);
     m_SpriteOtherIcon.spriteName = MessageTreeLogic.ConvertIdToName(id);
 }
 private void OnSetSellSucceed()
 {
     m_SpriteMyIcon.gameObject.SetActive(true);
     m_SpriteMyIcon.spriteName = MessageTreeLogic.ConvertIdToName(m_iCurrentSellItemId);
 }