Пример #1
0
    public void RefreshUI(GuildLogTrace logTrace)
    {
        if (!this.isInit)
        {
            this.InitUI();
        }
        this.itemNameText.set_text(string.Empty);
        DateTime dateTime = TimeManager.Instance.CalculateLocalServerTimeBySecond(logTrace.logTimeUtc);
        int      itemID   = 0;

        if (logTrace.items.get_Count() > 0)
        {
            itemID = logTrace.items.get_Item(0).itemId;
        }
        if (logTrace.logType == GuildLogType.GDLT.GuildStorageEquipDonate)
        {
            base.FindTransform("LogTime").GetComponent <Text>().set_text(string.Concat(new object[]
            {
                dateTime.get_Month(),
                "-",
                dateTime.get_Day(),
                " "
            }));
        }
        else
        {
            base.FindTransform("LogTime").GetComponent <Text>().set_text("[" + dateTime.ToString() + "]");
        }
        base.FindTransform("Content").GetComponent <Text>().set_text(this.GetLogContent((int)logTrace.logType, logTrace.roleName, logTrace.value, itemID));
    }
Пример #2
0
 private static int GuildStorageLogListSort(GuildLogTrace GL1, GuildLogTrace GL12)
 {
     if (GL1.logTimeUtc > GL12.logTimeUtc)
     {
         return(-1);
     }
     return(1);
 }