Browse Source

茶话会拼ui

huangxiaoyue 1 năm trước cách đây
mục cha
commit
19c1fadf98
25 tập tin đã thay đổi với 422 bổ sung2 xóa
  1. 111 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueTeaPartyUI.cs
  2. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueTeaPartyUI.cs.meta
  3. 74 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_TeaPartyItemTips.cs
  4. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_TeaPartyItemTips.cs.meta
  5. 83 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_comTeaPartyItem.cs
  6. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_comTeaPartyItem.cs.meta
  7. 108 0
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyView.cs
  8. 11 0
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyView.cs.meta
  9. 2 0
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueView.cs
  10. 0 2
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/RoleInfoView.cs
  11. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1.png
  12. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes
  13. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0!a.png
  14. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0.png
  15. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_1!a.png
  16. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_1.png
  17. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_3!a.png
  18. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_3.png
  19. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_4!a.png
  20. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_4.png
  21. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_5!a.png
  22. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_5.png
  23. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_6!a.png
  24. BIN
      GameClient/Assets/ResIn/UI/League/League_atlas0_6.png
  25. BIN
      GameClient/Assets/ResIn/UI/League/League_fui.bytes

+ 111 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueTeaPartyUI.cs

@@ -0,0 +1,111 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.League
+{
+    public partial class UI_LeagueTeaPartyUI
+    {
+        public GComponent target;
+        public GLoader m_loaBg;
+        public GButton m_btnBack;
+        public GButton m_btnChallenge;
+        public GButton m_btnChat;
+        public GTextField m_txtTeaName;
+        public UI_comTeaPartyItem m_teaPartyItem1;
+        public UI_comTeaPartyItem m_teaPartyItem2;
+        public UI_comTeaPartyItem m_teaPartyItem3;
+        public UI_comTeaPartyItem m_teaPartyItem4;
+        public UI_comTeaPartyItem m_teaPartyItem5;
+        public UI_comTeaPartyItem m_teaPartyItem6;
+        public UI_TeaPartyItemTips m_teaPartyItemTips;
+        public const string URL = "ui://tw70qm9dchwotpk";
+        public const string PACKAGE_NAME = "League";
+        public const string RES_NAME = "LeagueTeaPartyUI";
+        private static UI_LeagueTeaPartyUI _proxy;
+
+        public static UI_LeagueTeaPartyUI Create(GObject gObject = null)
+        {
+            var ui = new UI_LeagueTeaPartyUI();
+            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_LeagueTeaPartyUI Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_LeagueTeaPartyUI();
+            }
+            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_btnBack = (GButton)comp.GetChild("btnBack");
+            m_btnChallenge = (GButton)comp.GetChild("btnChallenge");
+            m_btnChat = (GButton)comp.GetChild("btnChat");
+            m_txtTeaName = (GTextField)comp.GetChild("txtTeaName");
+            m_teaPartyItem1 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem1"));
+            m_teaPartyItem2 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem2"));
+            m_teaPartyItem3 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem3"));
+            m_teaPartyItem4 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem4"));
+            m_teaPartyItem5 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem5"));
+            m_teaPartyItem6 = (UI_comTeaPartyItem)UI_comTeaPartyItem.Create(comp.GetChild("teaPartyItem6"));
+            m_teaPartyItemTips = (UI_TeaPartyItemTips)UI_TeaPartyItemTips.Create(comp.GetChild("teaPartyItemTips"));
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_loaBg = null;
+            m_btnBack = null;
+            m_btnChallenge = null;
+            m_btnChat = null;
+            m_txtTeaName = null;
+            m_teaPartyItem1.Dispose();
+            m_teaPartyItem1 = null;
+            m_teaPartyItem2.Dispose();
+            m_teaPartyItem2 = null;
+            m_teaPartyItem3.Dispose();
+            m_teaPartyItem3 = null;
+            m_teaPartyItem4.Dispose();
+            m_teaPartyItem4 = null;
+            m_teaPartyItem5.Dispose();
+            m_teaPartyItem5 = null;
+            m_teaPartyItem6.Dispose();
+            m_teaPartyItem6 = null;
+            m_teaPartyItemTips.Dispose();
+            m_teaPartyItemTips = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

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

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

+ 74 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_TeaPartyItemTips.cs

@@ -0,0 +1,74 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.League
+{
+    public partial class UI_TeaPartyItemTips
+    {
+        public GComponent target;
+        public GGraph m_touch;
+        public GGroup m_window;
+        public const string URL = "ui://tw70qm9dchwotpu";
+        public const string PACKAGE_NAME = "League";
+        public const string RES_NAME = "TeaPartyItemTips";
+        private static UI_TeaPartyItemTips _proxy;
+
+        public static UI_TeaPartyItemTips Create(GObject gObject = null)
+        {
+            var ui = new UI_TeaPartyItemTips();
+            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_TeaPartyItemTips Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_TeaPartyItemTips();
+            }
+            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_touch = (GGraph)comp.GetChild("touch");
+            m_window = (GGroup)comp.GetChild("window");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_touch = null;
+            m_window = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

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

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

+ 83 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_comTeaPartyItem.cs

@@ -0,0 +1,83 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.League
+{
+    public partial class UI_comTeaPartyItem
+    {
+        public GComponent target;
+        public GLoader m_iconRole;
+        public GLoader m_btnDetail;
+        public GTextField m_txtRoleName;
+        public GTextField m_txtMaxValue;
+        public GImage m_imgChoose;
+        public const string URL = "ui://tw70qm9dchwotpl";
+        public const string PACKAGE_NAME = "League";
+        public const string RES_NAME = "comTeaPartyItem";
+        private static UI_comTeaPartyItem _proxy;
+
+        public static UI_comTeaPartyItem Create(GObject gObject = null)
+        {
+            var ui = new UI_comTeaPartyItem();
+            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_comTeaPartyItem Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_comTeaPartyItem();
+            }
+            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_iconRole = (GLoader)comp.GetChild("iconRole");
+            m_btnDetail = (GLoader)comp.GetChild("btnDetail");
+            m_txtRoleName = (GTextField)comp.GetChild("txtRoleName");
+            m_txtMaxValue = (GTextField)comp.GetChild("txtMaxValue");
+            m_imgChoose = (GImage)comp.GetChild("imgChoose");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_iconRole = null;
+            m_btnDetail = null;
+            m_txtRoleName = null;
+            m_txtMaxValue = null;
+            m_imgChoose = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

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

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

+ 108 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyView.cs

@@ -0,0 +1,108 @@
+using ET;
+using FairyGUI;
+using Hutool;
+using System.Collections.Generic;
+using UI.League;
+using UnityEngine;
+
+namespace GFGGame
+{
+    //联盟
+    public class LeagueTeaPartyView : BaseWindow
+    {
+        private UI_LeagueTeaPartyUI _ui;
+        private List<UI_comTeaPartyItem> teaPartyItemList = new List<UI_comTeaPartyItem>();
+
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_LeagueTeaPartyUI.PACKAGE_NAME;
+            _ui = UI_LeagueTeaPartyUI.Create();
+            this.viewCom = _ui.target;
+            isfullScreen = true;
+
+            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("zjm_2_2");
+            _ui.m_btnBack.onClick.Add(OnBtnBackClick);
+            _ui.m_btnChat.onClick.Add(OnBtnChatClick);
+            _ui.m_btnChallenge.onClick.Add(OnBtnChallengeClick);
+
+            teaPartyItemList.Add(_ui.m_teaPartyItem1);
+            teaPartyItemList.Add(_ui.m_teaPartyItem2);
+            teaPartyItemList.Add(_ui.m_teaPartyItem3);
+            teaPartyItemList.Add(_ui.m_teaPartyItem4);
+            teaPartyItemList.Add(_ui.m_teaPartyItem5);
+            teaPartyItemList.Add(_ui.m_teaPartyItem6);
+
+            _ui.m_teaPartyItemTips.target.onClick.Add(OnTeaPartyItemTipsClick);
+
+            foreach (var itemObj in teaPartyItemList) {
+                itemObj.m_btnDetail.onClick.Add(OnBtnDetailClick);
+                itemObj.m_iconRole.onClick.Add(OnBtnIconRoleClick);
+            }
+        }
+
+        protected override void AddEventListener()
+        {
+            base.AddEventListener();
+        }
+
+        protected override void OnShown()
+        {
+            base.OnShown();
+        }
+        protected override void OnHide()
+        {
+            base.OnHide();
+        }
+
+        protected override void RemoveEventListener()
+        {
+            base.RemoveEventListener();
+        }
+
+        private void OnBtnChatClick()
+        {
+            ViewManager.Show<LeagueChatView>();
+        }
+
+        private void OnBtnChallengeClick()
+        {
+            PromptController.Instance.ShowFloatTextPrompt("开始挑战");
+
+
+        }
+
+        private void OnBtnBackClick()
+        {
+            ViewManager.GoBackFrom(typeof(LeagueView).FullName);
+        }
+
+        private void OnBtnDetailClick()
+        {
+            _ui.m_teaPartyItemTips.target.visible = true;
+        }
+        
+        private void OnTeaPartyItemTipsClick()
+        {
+            _ui.m_teaPartyItemTips.target.visible = false;
+        }
+
+        private void OnBtnIconRoleClick()
+        {
+            FieldCfg _curCfg;
+            _curCfg = FieldCfgArray.Instance.dataArray[FieldDataManager.Instance.difficulty];
+            int curLevelId = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(_curCfg.type, 0, _curCfg.id)[0].id;
+            ViewManager.Show<DressUpFightView>(curLevelId, new object[] { typeof(LeagueTeaPartyView).FullName, null }, true);
+        }
+    }
+}

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

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

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

@@ -116,6 +116,8 @@ namespace GFGGame
         private void OnBtnPartyClick()
         {
             PromptController.Instance.ShowFloatTextPrompt("活动未开启");
+
+            //ViewManager.Show<LeagueTeaPartyView>();
         }
         private void OnBtnShopClick()
         {

+ 0 - 2
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/RoleInfoView.cs

@@ -41,7 +41,6 @@ namespace GFGGame
             _ui.m_btnSetting.onClick.Add(OnBtnSettingClick);
             _ui.m_comHead.GetChild("comHead").asCom.onClick.Add(OnComHeadClick);
 
-
             _ui.m_list.itemRenderer = RenderListItem;
             _ui.m_list.onClickItem.Add(OnListItemClick);
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("xc_bjbj");
@@ -54,7 +53,6 @@ namespace GFGGame
             EventAgent.AddEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
             EventAgent.AddEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
             EventAgent.AddEventListener(ConstMessage.DOWNLOAD_FINISH, UpdateList);
-
         }
         protected override void OnShown()
         {

BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes


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_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_fui.bytes