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.
28 lines
742 B
28 lines
742 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
using UnityEngine.UI; |
|
|
|
public class ChatTaskItem_Private : ItemBase<ChatTaskMessage> |
|
{ |
|
public Text TaskName; |
|
public Text TaskContent; |
|
public Text TaskSendTime; |
|
public override void Init() |
|
{ |
|
|
|
} |
|
|
|
public override void UpdateItemData() |
|
{ |
|
TaskName.text = ChatManager.Instance.TaskData[Data.TaskId].Name; |
|
TaskContent.text = Data.TaskContent; |
|
TaskSendTime.text = Data.CreateTime.ToShortTimeString(); |
|
} |
|
|
|
public override void UpdateItemSize() |
|
{ |
|
RectTransform tfTask = gameObject.GetComponent<RectTransform>(); |
|
tfTask.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, 61); |
|
} |
|
}
|
|
|