Files
JJBB/Assets/Project/Script/GUI/Chat/ChatInfoLogItemTime.cs
2024-08-23 15:49:34 +08:00

36 lines
786 B
C#

using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
using System.Collections.Generic;
using Games.ChatHistory;
using GCGame.Table;
using Games.GlobeDefine;
using GCGame;
using Module.Log;
using Games.Item;
public class ChatInfoLogItemTime : ChatInfoLogItem
{
private string _TimeStr;
public override float GetItemHeight()
{
return _ChatInfo.preferredHeight + 5;
}
public void SetTime(string timeStr)
{
var time = DateTime.Parse(timeStr);
_TimeStr = string.Format("{0}/{1}/{2} ", time.Year, time.Month, time.Day) + time.TimeOfDay.ToString();
_ChatInfo.text = _TimeStr;
}
protected override bool SetDetailLog()
{
return true;
//_ChatInfo.text = _TimeStr;
}
}