Browse Source

联盟聊天

zhaoyang 2 years ago
parent
commit
de39db9e50
38 changed files with 500 additions and 24 deletions
  1. 28 0
      FGUIProject/assets/League/LeagueChatUI.xml
  2. 5 1
      FGUIProject/assets/League/LeagueUI.xml
  3. 19 0
      FGUIProject/assets/League/components/ListChatAnswerItem.xml
  4. 22 0
      FGUIProject/assets/League/components/ListChatAnswerItemMine.xml
  5. 9 8
      FGUIProject/assets/League/components/ListChatItem.xml
  6. 9 9
      FGUIProject/assets/League/components/ListChatItemMine.xml
  7. BIN
      FGUIProject/assets/League/images/zhj_liaotian_db.png
  8. 6 2
      FGUIProject/assets/League/package.xml
  9. 80 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueChatUI.cs
  10. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueChatUI.cs.meta
  11. 3 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueUI.cs
  12. 80 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatAnswerItem.cs
  13. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatAnswerItem.cs.meta
  14. 80 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatAnswerItemMine.cs
  15. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatAnswerItemMine.cs.meta
  16. 1 1
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatItem.cs
  17. 1 1
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatItemMine.cs
  18. 2 2
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnsweringView.cs
  19. 106 0
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueChatView.cs
  20. 11 0
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueChatView.cs.meta
  21. 5 0
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueView.cs
  22. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0!a.png
  23. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0.png
  24. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_1!a.png
  25. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_1.png
  26. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_2!a.png
  27. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_2.png
  28. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_3!a.png
  29. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_3.png
  30. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_4!a.png
  31. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_4.png
  32. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_5!a.png
  33. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_5.png
  34. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_6!a.png
  35. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_6.png
  36. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_7!a.png
  37. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_7.png
  38. BIN
      GameClient/Assets/ResIn/UI/League/League_fui.bytes

+ 28 - 0
FGUIProject/assets/League/LeagueChatUI.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="1080,1920">
+  <displayList>
+    <loader id="n6_ofwu" name="loaBg" xy="0,0" size="1080,1920">
+      <relation target="" sidePair="width-width,height-height"/>
+    </loader>
+    <loader id="n8_ofwu" name="n8" xy="0,1009" size="1080,911" group="n5_ofwu" url="ui://tw70qm9dofwu8c" autoSize="true"/>
+    <list id="n7_ofwu" name="list" xy="0,1063" size="1080,681" group="n5_ofwu" overflow="scroll" lineGap="10" defaultItem="ui://tw70qm9dofwu8e">
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+    </list>
+    <image id="n1_ofwu" name="n1" src="9jv667" fileName="images/lm_dt_srdb.png" xy="0,1665" group="n5_ofwu"/>
+    <image id="n2_ofwu" name="n2" src="a0cf2g" fileName="images/lm_sousuok.png" xy="84,1779" group="n5_ofwu"/>
+    <text id="n3_ofwu" name="txtChat" xy="110,1784" size="653,44" group="n5_ofwu" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#b4905d" letterSpacing="-2" vars="true" autoSize="none" text="" input="true" prompt="[color=#A7957E]最多输入50个字[/color]" maxLength="50"/>
+    <component id="n4_ofwu" name="btnSend" src="rv091o" fileName="components/Button11.xml" pkg="eg2y0ldp" xy="799,1775" size="198,61" group="n5_ofwu">
+      <Button title="发送"/>
+    </component>
+    <group id="n5_ofwu" name="n5" xy="0,1009" size="1080,911" advanced="true">
+      <relation target="" sidePair="bottom-bottom"/>
+    </group>
+  </displayList>
+</component>

+ 5 - 1
FGUIProject/assets/League/LeagueUI.xml

@@ -36,7 +36,11 @@
     <text id="n14_u2u3" name="txtLeaderName" xy="815,232" size="162,34" group="n26_o9gh" font="ui://eg2y0ldpa0cftkz" fontSize="24" color="#923c1a" autoClearText="true" text="会长名字7个字"/>
     <text id="n15_u2u3" name="txtNotice" xy="617,284" size="396,69" group="n26_o9gh" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#915e15" leading="-4" autoSize="height" autoClearText="true" text="联盟公告联盟公告联盟公盟公联盟联盟公告联盟公告联盟"/>
     <text id="n29_o9gh" name="n29" xy="819,205" size="39,26" group="n26_o9gh" font="ui://eg2y0ldpa0cftkz" fontSize="18" color="#fffbed" text="社长"/>
-    <group id="n26_o9gh" name="n26" xy="599,191" size="444,230"/>
+    <component id="n34_ofwu" name="btnChat" src="rv091l" fileName="components/Button10.xml" xy="966,408" size="66,66" group="n26_o9gh">
+      <relation target="n25_o9gh" sidePair="right-right,bottom-bottom"/>
+      <Button icon="ui://tw70qm9dwm6034"/>
+    </component>
+    <group id="n26_o9gh" name="n26" xy="599,191" size="444,283"/>
     <component id="n7_u2u3" name="btnPray" src="u2u314" fileName="components/ButtonModle6.xml" xy="70,446" group="n9_u2u3"/>
     <component id="n3_u2u3" name="btnSkill" src="u2u3u" fileName="components/ButtonModle2.xml" xy="343,669" group="n9_u2u3"/>
     <component id="n4_u2u3" name="btnGift" src="u2u3y" fileName="components/ButtonModle3.xml" xy="755,894" group="n9_u2u3"/>

+ 19 - 0
FGUIProject/assets/League/components/ListChatAnswerItem.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="670,155">
+  <displayList>
+    <component id="n31_pvb4" name="comHead" src="o9ghtlp" fileName="components/ComHeadWithLv2.xml" pkg="eg2y0ldp" xy="0,0" size="230,218" scale="0.5,0.5">
+      <relation target="" sidePair="height-height,left-left"/>
+    </component>
+    <text id="n32_pvb4" name="txtName" xy="113,20" size="166,35" group="n37_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="25" color="#923c1a" align="center" letterSpacing="-2" text="玩家名字七个字"/>
+    <loader id="n36_pvb4" name="loaTitle" xy="284,23" size="117,28" group="n37_pvb4" autoSize="true"/>
+    <group id="n37_pvb4" name="n37" xy="113,20" size="288,35" advanced="true" layout="hz" colGap="5" excludeInvisibles="true">
+      <relation target="" sidePair="left-left"/>
+    </group>
+    <image id="n35_pvb4" name="n35" src="9jv66t" fileName="images/lm_dt_dhdk.png" xy="113,62" size="389,84" group="n38_9jv6">
+      <relation target="n34_pvb4" sidePair="width-width,height-height"/>
+    </image>
+    <text id="n34_pvb4" name="txtChatContent" xy="145,66" size="340,73" group="n38_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#915e15" leading="0" ubb="true" vars="true" autoClearText="true" text="玩家发言内容玩家发言内容&#xA;玩家发言\n内容玩家"/>
+    <group id="n38_9jv6" name="n38" xy="113,62" size="389,84"/>
+  </displayList>
+  <relation target="n34_pvb4" sidePair="height-height"/>
+</component>

+ 22 - 0
FGUIProject/assets/League/components/ListChatAnswerItemMine.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="670,116">
+  <displayList>
+    <component id="n31_pvb4" name="comHead" src="o9ghtlp" fileName="components/ComHeadWithLv2.xml" pkg="eg2y0ldp" xy="498,-57" pivot="0.5,0.5" group="n41_miy3" scale="0.5,0.5">
+      <relation target="" sidePair="right-right"/>
+    </component>
+    <loader id="n36_pvb4" name="loaTitle" xy="259,29" size="117,28" group="n37_pvb4" url="ui://tw70qm9d9jv66k" autoSize="true"/>
+    <text id="n32_pvb4" name="txtName" xy="381,24" size="166,35" group="n37_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="25" color="#923c1a" align="center" letterSpacing="-2" text="玩家名字七个字"/>
+    <group id="n37_pvb4" name="n37" xy="259,24" size="288,35" group="n41_miy3" advanced="true" layout="hz" colGap="5" excludeInvisibles="true">
+      <relation target="" sidePair="right-right"/>
+    </group>
+    <image id="n35_pvb4" name="n35" src="9jv66u" fileName="images/lm_dt_dhdk2.png" xy="159,69" pivot="1,0" size="390,46" group="n38_9jv6">
+      <relation target="n34_pvb4" sidePair="width-width,height-height"/>
+    </image>
+    <text id="n34_pvb4" name="txtChatContent" xy="180,74" pivot="1,0" size="340,39" group="n38_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#95514d" leading="0" text="玩家发言内容玩家发言内容"/>
+    <group id="n38_9jv6" name="n38" xy="159,69" size="390,46" group="n41_miy3" advanced="true">
+      <relation target="" sidePair="right-right"/>
+    </group>
+    <group id="n41_miy3" name="n41" xy="159,-57" size="569,230"/>
+  </displayList>
+  <relation target="n34_pvb4" sidePair="height-height"/>
+</component>

+ 9 - 8
FGUIProject/assets/League/components/ListChatItem.xml

@@ -1,19 +1,20 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="670,155">
+<component size="1080,155">
   <displayList>
-    <component id="n31_pvb4" name="comHead" src="o9ghtlp" fileName="components/ComHeadWithLv2.xml" pkg="eg2y0ldp" xy="0,0" size="230,218" scale="0.5,0.5">
+    <component id="n31_pvb4" name="comHead" src="o9ghtlp" fileName="components/ComHeadWithLv2.xml" pkg="eg2y0ldp" xy="30,0" size="230,218" group="n39_ofwu" scale="0.5,0.5">
       <relation target="" sidePair="height-height,left-left"/>
     </component>
-    <text id="n32_pvb4" name="txtName" xy="113,20" size="166,35" group="n37_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="25" color="#923c1a" align="center" letterSpacing="-2" text="玩家名字七个字"/>
-    <loader id="n36_pvb4" name="loaTitle" xy="284,23" size="117,28" group="n37_pvb4" autoSize="true"/>
-    <group id="n37_pvb4" name="n37" xy="113,20" size="288,35" advanced="true" layout="hz" colGap="5" excludeInvisibles="true">
+    <text id="n32_pvb4" name="txtName" xy="143,20" size="166,35" group="n37_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="25" color="#923c1a" align="center" letterSpacing="-2" text="玩家名字七个字"/>
+    <loader id="n36_pvb4" name="loaTitle" xy="314,23" size="117,28" group="n37_pvb4" autoSize="true"/>
+    <group id="n37_pvb4" name="n37" xy="143,20" size="288,35" group="n39_ofwu" advanced="true" layout="hz" colGap="5" excludeInvisibles="true">
       <relation target="" sidePair="left-left"/>
     </group>
-    <image id="n35_pvb4" name="n35" src="9jv66t" fileName="images/lm_dt_dhdk.png" xy="113,62" size="389,84" group="n38_9jv6">
+    <image id="n35_pvb4" name="n35" src="9jv66t" fileName="images/lm_dt_dhdk.png" xy="143,62" size="389,84" group="n38_9jv6">
       <relation target="n34_pvb4" sidePair="width-width,height-height"/>
     </image>
-    <text id="n34_pvb4" name="txtChatContent" xy="145,66" size="340,73" group="n38_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#915e15" leading="0" ubb="true" vars="true" autoClearText="true" text="玩家发言内容玩家发言内容&#xA;玩家发言\n内容玩家"/>
-    <group id="n38_9jv6" name="n38" xy="113,62" size="389,84"/>
+    <text id="n34_pvb4" name="txtChatContent" xy="175,66" size="340,73" group="n38_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#915e15" leading="0" ubb="true" vars="true" autoClearText="true" text="玩家发言内容玩家发言内容&#xA;玩家发言\n内容玩家"/>
+    <group id="n38_9jv6" name="n38" xy="143,62" size="389,84" group="n39_ofwu"/>
+    <group id="n39_ofwu" name="n39" xy="30,0" size="502,218"/>
   </displayList>
   <relation target="n34_pvb4" sidePair="height-height"/>
 </component>

+ 9 - 9
FGUIProject/assets/League/components/ListChatItemMine.xml

@@ -1,22 +1,22 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="670,116">
+<component size="1080,116">
   <displayList>
-    <component id="n31_pvb4" name="comHead" src="o9ghtlp" fileName="components/ComHeadWithLv2.xml" pkg="eg2y0ldp" xy="498,-57" pivot="0.5,0.5" group="n41_miy3" scale="0.5,0.5">
+    <component id="n31_pvb4" name="comHead" src="o9ghtlp" fileName="components/ComHeadWithLv2.xml" pkg="eg2y0ldp" xy="875,-57" pivot="0.5,0.5" group="n41_miy3" scale="0.5,0.5">
       <relation target="" sidePair="right-right"/>
     </component>
-    <loader id="n36_pvb4" name="loaTitle" xy="259,29" size="117,28" group="n37_pvb4" url="ui://tw70qm9d9jv66k" autoSize="true"/>
-    <text id="n32_pvb4" name="txtName" xy="381,24" size="166,35" group="n37_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="25" color="#923c1a" align="center" letterSpacing="-2" text="玩家名字七个字"/>
-    <group id="n37_pvb4" name="n37" xy="259,24" size="288,35" group="n41_miy3" advanced="true" layout="hz" colGap="5" excludeInvisibles="true">
+    <loader id="n36_pvb4" name="loaTitle" xy="636,29" size="117,28" group="n37_pvb4" url="ui://tw70qm9d9jv66k" autoSize="true"/>
+    <text id="n32_pvb4" name="txtName" xy="758,24" size="166,35" group="n37_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="25" color="#923c1a" align="center" letterSpacing="-2" text="玩家名字七个字"/>
+    <group id="n37_pvb4" name="n37" xy="636,24" size="288,35" group="n41_miy3" advanced="true" layout="hz" colGap="5" excludeInvisibles="true">
       <relation target="" sidePair="right-right"/>
     </group>
-    <image id="n35_pvb4" name="n35" src="9jv66u" fileName="images/lm_dt_dhdk2.png" xy="159,69" pivot="1,0" size="390,46" group="n38_9jv6">
+    <image id="n35_pvb4" name="n35" src="9jv66u" fileName="images/lm_dt_dhdk2.png" xy="536,69" pivot="1,0" size="390,46" group="n38_9jv6">
       <relation target="n34_pvb4" sidePair="width-width,height-height"/>
     </image>
-    <text id="n34_pvb4" name="txtChatContent" xy="180,74" pivot="1,0" size="340,39" group="n38_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#95514d" leading="0" text="玩家发言内容玩家发言内容"/>
-    <group id="n38_9jv6" name="n38" xy="159,69" size="390,46" group="n41_miy3" advanced="true">
+    <text id="n34_pvb4" name="txtChatContent" xy="557,74" pivot="1,0" size="340,39" group="n38_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#95514d" leading="0" text="玩家发言内容玩家发言内容"/>
+    <group id="n38_9jv6" name="n38" xy="536,69" size="390,46" group="n41_miy3" advanced="true">
       <relation target="" sidePair="right-right"/>
     </group>
-    <group id="n41_miy3" name="n41" xy="159,-57" size="569,230"/>
+    <group id="n41_miy3" name="n41" xy="536,-57" size="569,230" advanced="true"/>
   </displayList>
   <relation target="n34_pvb4" sidePair="height-height"/>
 </component>

BIN
FGUIProject/assets/League/images/zhj_liaotian_db.png


+ 6 - 2
FGUIProject/assets/League/package.xml

@@ -112,8 +112,8 @@
     <component id="pvb452" name="LeagueAnswerUI.xml" path="/" exported="true"/>
     <component id="pvb453" name="LeagueAnsweringUI.xml" path="/" exported="true"/>
     <component id="pvb455" name="ListAnswerJoinItem.xml" path="/components/"/>
-    <component id="pvb456" name="ListChatItem.xml" path="/components/" exported="true"/>
-    <component id="pvb457" name="ListChatItemMine.xml" path="/components/" exported="true"/>
+    <component id="pvb456" name="ListChatAnswerItem.xml" path="/components/" exported="true"/>
+    <component id="pvb457" name="ListChatAnswerItemMine.xml" path="/components/" exported="true"/>
     <component id="pvb458" name="LeagueAnswerRewardUI.xml" path="/" exported="true"/>
     <component id="pvb459" name="ListAnswerRewardItem.xml" path="/components/"/>
     <component id="pvb45a" name="LeagueSkillUI.xml" path="/" exported="true"/>
@@ -211,6 +211,10 @@
     <image id="ofwu89" name="tb_xiang_suhexiang.png" path="/images/"/>
     <image id="ofwu8a" name="tb_xiang_tianmuxiang.png" path="/images/"/>
     <image id="ofwu8b" name="tb_xiang_baitanxiang.png" path="/images/"/>
+    <image id="ofwu8c" name="zhj_liaotian_db.png" path="/images/"/>
+    <component id="ofwu8d" name="LeagueChatUI.xml" path="/" exported="true"/>
+    <component id="ofwu8e" name="ListChatItem.xml" path="/components/" exported="true"/>
+    <component id="ofwu8f" name="ListChatItemMine.xml" path="/components/" exported="true"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/League" packageCount="2" genCode="true" maxAtlasSize="2048" extractAlpha="true"/>
 </packageDescription>

+ 80 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueChatUI.cs

@@ -0,0 +1,80 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.League
+{
+    public partial class UI_LeagueChatUI
+    {
+        public GComponent target;
+        public GLoader m_loaBg;
+        public GList m_list;
+        public GTextInput m_txtChat;
+        public GButton m_btnSend;
+        public const string URL = "ui://tw70qm9dofwu8d";
+        public const string PACKAGE_NAME = "League";
+        public const string RES_NAME = "LeagueChatUI";
+        private static UI_LeagueChatUI _proxy;
+
+        public static UI_LeagueChatUI Create(GObject gObject = null)
+        {
+            var ui = new UI_LeagueChatUI();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_LeagueChatUI Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_LeagueChatUI();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_loaBg = (GLoader)comp.GetChild("loaBg");
+            m_list = (GList)comp.GetChild("list");
+            m_txtChat = (GTextInput)comp.GetChild("txtChat");
+            m_btnSend = (GButton)comp.GetChild("btnSend");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_loaBg = null;
+            m_list = null;
+            m_txtChat = null;
+            m_btnSend = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueChatUI.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 261afa5fd875325488cbc704c77a3e94
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

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

@@ -20,6 +20,7 @@ namespace UI.League
         public GButton m_btnChangeNotice;
         public GTextField m_txtLeaderName;
         public GTextField m_txtNotice;
+        public GButton m_btnChat;
         public UI_ButtonModle6 m_btnPray;
         public UI_ButtonModle2 m_btnSkill;
         public UI_ButtonModle3 m_btnGift;
@@ -86,6 +87,7 @@ namespace UI.League
             m_btnChangeNotice = (GButton)comp.GetChild("btnChangeNotice");
             m_txtLeaderName = (GTextField)comp.GetChild("txtLeaderName");
             m_txtNotice = (GTextField)comp.GetChild("txtNotice");
+            m_btnChat = (GButton)comp.GetChild("btnChat");
             m_btnPray = (UI_ButtonModle6)UI_ButtonModle6.Create(comp.GetChild("btnPray"));
             m_btnSkill = (UI_ButtonModle2)UI_ButtonModle2.Create(comp.GetChild("btnSkill"));
             m_btnGift = (UI_ButtonModle3)UI_ButtonModle3.Create(comp.GetChild("btnGift"));
@@ -111,6 +113,7 @@ namespace UI.League
             m_btnChangeNotice = null;
             m_txtLeaderName = null;
             m_txtNotice = null;
+            m_btnChat = null;
             m_btnPray.Dispose();
             m_btnPray = null;
             m_btnSkill.Dispose();

+ 80 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatAnswerItem.cs

@@ -0,0 +1,80 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.League
+{
+    public partial class UI_ListChatAnswerItem
+    {
+        public GComponent target;
+        public GComponent m_comHead;
+        public GTextField m_txtName;
+        public GLoader m_loaTitle;
+        public GTextField m_txtChatContent;
+        public const string URL = "ui://tw70qm9dpvb456";
+        public const string PACKAGE_NAME = "League";
+        public const string RES_NAME = "ListChatAnswerItem";
+        private static UI_ListChatAnswerItem _proxy;
+
+        public static UI_ListChatAnswerItem Create(GObject gObject = null)
+        {
+            var ui = new UI_ListChatAnswerItem();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_ListChatAnswerItem Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_ListChatAnswerItem();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_comHead = (GComponent)comp.GetChild("comHead");
+            m_txtName = (GTextField)comp.GetChild("txtName");
+            m_loaTitle = (GLoader)comp.GetChild("loaTitle");
+            m_txtChatContent = (GTextField)comp.GetChild("txtChatContent");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_comHead = null;
+            m_txtName = null;
+            m_loaTitle = null;
+            m_txtChatContent = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatAnswerItem.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 2938661cac4847f49b655067d889df00
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 80 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatAnswerItemMine.cs

@@ -0,0 +1,80 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.League
+{
+    public partial class UI_ListChatAnswerItemMine
+    {
+        public GComponent target;
+        public GComponent m_comHead;
+        public GLoader m_loaTitle;
+        public GTextField m_txtName;
+        public GTextField m_txtChatContent;
+        public const string URL = "ui://tw70qm9dpvb457";
+        public const string PACKAGE_NAME = "League";
+        public const string RES_NAME = "ListChatAnswerItemMine";
+        private static UI_ListChatAnswerItemMine _proxy;
+
+        public static UI_ListChatAnswerItemMine Create(GObject gObject = null)
+        {
+            var ui = new UI_ListChatAnswerItemMine();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_ListChatAnswerItemMine Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_ListChatAnswerItemMine();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_comHead = (GComponent)comp.GetChild("comHead");
+            m_loaTitle = (GLoader)comp.GetChild("loaTitle");
+            m_txtName = (GTextField)comp.GetChild("txtName");
+            m_txtChatContent = (GTextField)comp.GetChild("txtChatContent");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_comHead = null;
+            m_loaTitle = null;
+            m_txtName = null;
+            m_txtChatContent = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ListChatAnswerItemMine.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: e6897c88424aac34b997be91e85b1d71
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

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

@@ -11,7 +11,7 @@ namespace UI.League
         public GTextField m_txtName;
         public GLoader m_loaTitle;
         public GTextField m_txtChatContent;
-        public const string URL = "ui://tw70qm9dpvb456";
+        public const string URL = "ui://tw70qm9dofwu8e";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ListChatItem";
         private static UI_ListChatItem _proxy;

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

@@ -11,7 +11,7 @@ namespace UI.League
         public GLoader m_loaTitle;
         public GTextField m_txtName;
         public GTextField m_txtChatContent;
-        public const string URL = "ui://tw70qm9dpvb457";
+        public const string URL = "ui://tw70qm9dofwu8f";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ListChatItemMine";
         private static UI_ListChatItemMine _proxy;

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

@@ -351,9 +351,9 @@ namespace GFGGame
         private string GetListChatItemResource(int index)
         {
             if (ChatDataManager.Instance.GetChatDatas(ChatType.LeagueQuestion)[index].RoleInfo.roleId == RoleDataManager.roleId)
-                return "ui://League/ListChatItemMine";
+                return "ui://League/ListChatAnswerItemMine";
             else
-                return "ui://League/ListChatItem";
+                return "ui://League/ListChatAnswerItem";
         }
     }
 }

+ 106 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueChatView.cs

@@ -0,0 +1,106 @@
+using ET;
+using FairyGUI;
+using UI.CommonGame;
+using UI.League;
+using UnityEngine;
+
+namespace GFGGame
+{
+    //联盟聊天
+    public class LeagueChatView : BaseWindow
+    {
+        private UI_LeagueChatUI _ui;
+
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_LeagueChatUI.PACKAGE_NAME;
+            _ui = UI_LeagueChatUI.Create();
+            this.viewCom = _ui.target;
+            isfullScreen = true;
+
+            _ui.m_loaBg.onClick.Add(Hide);
+            _ui.m_list.itemRenderer = RenderListItem;
+            _ui.m_list.itemProvider = GetListChatItemResource;
+            _ui.m_list.SetVirtual();
+
+            _ui.m_btnSend.onClick.Add(OnBtnSendClick);
+        }
+        protected override void AddEventListener()
+        {
+            base.AddEventListener();
+            EventAgent.AddEventListener(ConstMessage.NOTICE_CHAT_MESSAGE, UpdateChatList);
+        }
+        protected override void OnShown()
+        {
+            base.OnShown();
+            UpdateChatList();
+        }
+
+        protected override void OnHide()
+        {
+            base.OnHide();
+            if (_ui.m_list.numItems > 0) _ui.m_list.ScrollToView(0);
+        }
+
+        protected override void RemoveEventListener()
+        {
+            base.RemoveEventListener();
+            EventAgent.RemoveEventListener(ConstMessage.NOTICE_CHAT_MESSAGE, UpdateChatList);
+        }
+        private void UpdateChatList()
+        {
+            _ui.m_list.numItems = ChatDataManager.Instance.GetChatDatas(ChatType.League).Count;
+            _ui.m_list.scrollPane.ScrollBottom(true);
+        }
+        private string GetListChatItemResource(int index)
+        {
+            if (ChatDataManager.Instance.GetChatDatas(ChatType.League)[index].RoleInfo.roleId == RoleDataManager.roleId)
+                return "ui://League/ListChatItemMine";
+            else
+                return "ui://League/ListChatItem";
+        }
+        private void RenderListItem(int index, GObject obj)
+        {
+            ChatData chatData = ChatDataManager.Instance.ChatDatas[ChatType.League][index];
+            OtherRoleInfoData roleInfo = chatData.RoleInfo;
+            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;
+            string content = "";
+            for (int i = 0; i < chatData.Content.Length; i++)
+            {
+                string str = i == 12 * (i + 1) ? chatData.Content[i] + "/n" : chatData.Content[i].ToString();
+                content += str;
+            }
+            item.m_txtChatContent.text = chatData.Content;
+
+            UI_ListChatItem.ProxyEnd();
+        }
+        private async void OnBtnSendClick()
+        {
+            if (string.IsNullOrEmpty(_ui.m_txtChat.text))
+            {
+                PromptController.Instance.ShowFloatTextPrompt("还没有输入想发送的内容哦");
+                return;
+            }
+            bool result = await ChatSProxy.ReqSendChatMsg(ChatType.League, _ui.m_txtChat.text);
+            if (result)
+            {
+                _ui.m_txtChat.text = "";
+                UpdateChatList();
+            }
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueChatView.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: e02031b77e51e2246a68e1432506f10c
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueView.cs

@@ -40,6 +40,7 @@ namespace GFGGame
             _ui.m_btnGift.target.onClick.Add(OnBtnGiftClick);
             _ui.m_btnShop.target.onClick.Add(OnBtnShopClick);
             _ui.m_btnParty.target.onClick.Add(OnBtnPartyClick);
+            _ui.m_btnChat.onClick.Add(OnBtnChatClick);
         }
         protected override void AddEventListener()
         {
@@ -93,6 +94,10 @@ namespace GFGGame
         {
             ViewManager.Show<LeagueChangeNoticeView>(null, new object[] { typeof(LeagueView).FullName, null });
         }
+        private void OnBtnChatClick()
+        {
+            ViewManager.Show<LeagueChatView>();
+        }
         private void OnBtnPrayClick()
         {
             ViewManager.Show<LeaguePrayView>(null, new object[] { typeof(LeagueView).FullName, null });

BIN
GameClient/Assets/ResIn/UI/League/League_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_1!a.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_2!a.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_2.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_3!a.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_3.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_4!a.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_4.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_5!a.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_5.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_6!a.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_6.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_7!a.png


BIN
GameClient/Assets/ResIn/UI/League/League_atlas0_7.png


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