Parcourir la source

锟斤拷锟矫伙拷锟结交

hexiaojie dans 4 jours
Parent
commit
95d91e3ad4

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatItem.cs

@@ -11,6 +11,7 @@ namespace UI.League
         public GTextField m_txtName;
         public GLoader m_loaTitle;
         public GTextField m_txtChatContent;
+        public GTextField m_txtTime;
         public const string URL = "ui://tw70qm9dofwu8e";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ListChatItem";
@@ -62,6 +63,7 @@ namespace UI.League
             m_txtName = (GTextField)comp.GetChild("txtName");
             m_loaTitle = (GLoader)comp.GetChild("loaTitle");
             m_txtChatContent = (GTextField)comp.GetChild("txtChatContent");
+            m_txtTime = (GTextField)comp.GetChild("txtTime");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -69,6 +71,7 @@ namespace UI.League
             m_txtName = null;
             m_loaTitle = null;
             m_txtChatContent = null;
+            m_txtTime = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatItemMine.cs

@@ -11,6 +11,7 @@ namespace UI.League
         public GLoader m_loaTitle;
         public GTextField m_txtName;
         public GTextField m_txtChatContent;
+        public GTextField m_txtTime;
         public const string URL = "ui://tw70qm9dofwu8f";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ListChatItemMine";
@@ -62,6 +63,7 @@ namespace UI.League
             m_loaTitle = (GLoader)comp.GetChild("loaTitle");
             m_txtName = (GTextField)comp.GetChild("txtName");
             m_txtChatContent = (GTextField)comp.GetChild("txtChatContent");
+            m_txtTime = (GTextField)comp.GetChild("txtTime");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -69,6 +71,7 @@ namespace UI.League
             m_loaTitle = null;
             m_txtName = null;
             m_txtChatContent = null;
+            m_txtTime = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/League/LeagueChatView.cs

@@ -79,6 +79,7 @@ namespace GFGGame
             UI_ListChatItem item = UI_ListChatItem.Proxy(obj);
             RoleInfoManager.Instance.UpdateHeadWithLv(item.m_comHead, roleInfo.headId, roleInfo.headBorderId, roleInfo.roleLv);
             item.m_txtName.text = roleInfo.roleName;
+            item.m_txtTime.text = TimeUtil.FormattingTimeMinute(chatData.Time);
             item.m_txtChatContent.text = chatData.Content;
             UI_ListChatItem.ProxyEnd();
         }
@@ -104,7 +105,7 @@ namespace GFGGame
                 int num = GlobalCfgArray.globalCfg.chatTime;
                 _ui.m_btnSend.m_timeStr.text = num.ToString();
                 _ui.m_btnSend.m_c1.selectedIndex = 1;
-                Timers.inst.Add(1, 10, (param) =>
+                Timers.inst.Add(1, GlobalCfgArray.globalCfg.chatTime, (param) =>
                 {
                     num--;
                     _ui.m_btnSend.m_timeStr.text = num.ToString();

BIN
GameClient/Assets/ResIn/UI/League/League_fui.bytes