You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.0 KiB

using TMPro;
using UnityEngine;
public class EScrChatBlock : EScrCell
{
private GameObject goLineBottom;
private TextMeshProUGUI txtName;
public override void InitCell()
{
txtName = transform.Find("txtName").GetComponent<TextMeshProUGUI>();
transform.Find("btnUnblock").Find("txt").GetComponent<TextMeshProUGUI>().text = LocalizationText.GetText("chat_unblock");
}
public override void Localize()
{
transform.Find("btnUnblock").Find("txt").GetComponent<TextMeshProUGUI>().text = LocalizationText.GetText("chat_unblock");
}
public override void SetData(int itemid)
{
itemID = itemid;
//goLineBottom.SetActive((itemid + 1) >= ChatMgr.SGetBlockUserCount());
txtName.text = ChatMgr.SGetBlockUserName(itemid);
}
public override void RefreshCellView()
{
base.RefreshCellView();
SetData(itemID);
}
public void BtnSelf()
{
SoundMgr.PlaySfx(SoundName.BtnPress);
ChatMgr.SUnblockUser(itemID);
}
}