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.
33 lines
687 B
33 lines
687 B
using System.Numerics;
|
|
using TMPro;
|
|
|
|
public class GoodsNameItem : GoodsItem
|
|
{
|
|
#region UI
|
|
protected TextMeshProUGUI txtName;
|
|
#endregion UI
|
|
|
|
|
|
|
|
|
|
|
|
protected override void Init()
|
|
{
|
|
base.Init();
|
|
txtName = transform.Find("txtName").GetComponent<TextMeshProUGUI>();
|
|
}
|
|
|
|
public override void ReleaseData()
|
|
{
|
|
base.ReleaseData();
|
|
txtName.text = null;
|
|
}
|
|
|
|
public override void SetGoods(int itype, int icode, BigInteger icount, bool bpvp = false)
|
|
{
|
|
base.SetGoods(itype, icode, icount);
|
|
txtName.text = FormatString.GetGoodsName(itype, icode);
|
|
txtCount.alignment = TextAlignmentOptions.Left;
|
|
}
|
|
|
|
}
|