public void Refresh(PlayerFriendMsg info_) { m_player_id = info_.PlayerId; m_name_text.Text = info_.Name; FriendDataManager.Instance.SetHeadIcon(m_head_tex, info_.Icon, info_.PlayerId); m_gender_icon.Sprite = CommonTools.GetGenderIcon(info_.Gender); m_lvl_text.Text = string.Format("LV{0}", info_.Level); }
public void Refresh(PlayerFriendMsg info_) { m_player_id = info_.PlayerId; m_name_text.Text = info_.Name; ConfTitle my_title = ConfTitle.Get(info_.TitleId); m_title_text.Text = null != my_title?LocalizeModule.Instance.GetString(my_title.name) : ""; FriendDataManager.Instance.SetHeadIcon(m_head_tex, info_.Icon, info_.PlayerId); m_gender_icon.Sprite = CommonTools.GetGenderIcon(info_.Gender); m_lvl_text.Text = string.Format("LV{0}", info_.Level); bool enable_gift = FriendDataManager.Instance.Send_gift_left_num <= 0 ? false : info_.Gift; m_send_gift_btn.Enable = enable_gift; m_send_gift_btn.SetGray(!enable_gift); }