huangxiaoyue преди 1 година
родител
ревизия
d5ffdfe0ee

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_ComScaleList.cs

@@ -0,0 +1,71 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.CommonGame
+{
+    public partial class UI_ComScaleList
+    {
+        public GComponent target;
+        public GList m_listItem;
+        public const string URL = "ui://eg2y0ldpgcsntph";
+        public const string PACKAGE_NAME = "CommonGame";
+        public const string RES_NAME = "ComScaleList";
+        private static UI_ComScaleList _proxy;
+
+        public static UI_ComScaleList Create(GObject gObject = null)
+        {
+            var ui = new UI_ComScaleList();
+            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_ComScaleList Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_ComScaleList();
+            }
+            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_listItem = (GList)comp.GetChild("listItem");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_listItem = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_ComScaleList.cs.meta

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

+ 7 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_ComTipsBase.cs

@@ -18,7 +18,8 @@ namespace UI.CommonGame
         public GTextField m_txtZhi;
         public GGroup m_grpScore;
         public GList m_listTag;
-        public GList m_listItem;
+        public UI_ComScaleList m_comScaleList;
+        public GGroup m_grpComScaleList;
         public const string URL = "ui://eg2y0ldpohbxti3";
         public const string PACKAGE_NAME = "CommonGame";
         public const string RES_NAME = "ComTipsBase";
@@ -77,7 +78,8 @@ namespace UI.CommonGame
             m_txtZhi = (GTextField)comp.GetChild("txtZhi");
             m_grpScore = (GGroup)comp.GetChild("grpScore");
             m_listTag = (GList)comp.GetChild("listTag");
-            m_listItem = (GList)comp.GetChild("listItem");
+            m_comScaleList = (UI_ComScaleList)UI_ComScaleList.Create(comp.GetChild("comScaleList"));
+            m_grpComScaleList = (GGroup)comp.GetChild("grpComScaleList");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -92,7 +94,9 @@ namespace UI.CommonGame
             m_txtZhi = null;
             m_grpScore = null;
             m_listTag = null;
-            m_listItem = null;
+            m_comScaleList.Dispose();
+            m_comScaleList = null;
+            m_grpComScaleList = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 13 - 9
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_ItemExchangeUI.cs

@@ -20,7 +20,10 @@ namespace UI.CommonGame
         public GTextField m_txtZhi;
         public GGroup m_grpScore;
         public GList m_listTag;
-        public GList m_listItem;
+        public UI_ComScaleList m_comScaleList;
+        public GGroup m_grpComScaleList;
+        public GTextField m_txtLock;
+        public GGroup m_grpLock;
         public GTextField m_txtShow;
         public UI_Button2 m_btnMinus;
         public UI_Button16 m_btnAdd;
@@ -33,8 +36,6 @@ namespace UI.CommonGame
         public GButton m_btnConfirm;
         public GGroup m_bgpBtn;
         public GGroup m_grpBtn;
-        public GTextField m_txtLock;
-        public GGroup m_grpLock;
         public const string URL = "ui://eg2y0ldps5s9tik";
         public const string PACKAGE_NAME = "CommonGame";
         public const string RES_NAME = "ItemExchangeUI";
@@ -95,7 +96,10 @@ namespace UI.CommonGame
             m_txtZhi = (GTextField)comp.GetChild("txtZhi");
             m_grpScore = (GGroup)comp.GetChild("grpScore");
             m_listTag = (GList)comp.GetChild("listTag");
-            m_listItem = (GList)comp.GetChild("listItem");
+            m_comScaleList = (UI_ComScaleList)UI_ComScaleList.Create(comp.GetChild("comScaleList"));
+            m_grpComScaleList = (GGroup)comp.GetChild("grpComScaleList");
+            m_txtLock = (GTextField)comp.GetChild("txtLock");
+            m_grpLock = (GGroup)comp.GetChild("grpLock");
             m_txtShow = (GTextField)comp.GetChild("txtShow");
             m_btnMinus = (UI_Button2)UI_Button2.Create(comp.GetChild("btnMinus"));
             m_btnAdd = (UI_Button16)UI_Button16.Create(comp.GetChild("btnAdd"));
@@ -108,8 +112,6 @@ namespace UI.CommonGame
             m_btnConfirm = (GButton)comp.GetChild("btnConfirm");
             m_bgpBtn = (GGroup)comp.GetChild("bgpBtn");
             m_grpBtn = (GGroup)comp.GetChild("grpBtn");
-            m_txtLock = (GTextField)comp.GetChild("txtLock");
-            m_grpLock = (GGroup)comp.GetChild("grpLock");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -127,7 +129,11 @@ namespace UI.CommonGame
             m_txtZhi = null;
             m_grpScore = null;
             m_listTag = null;
-            m_listItem = null;
+            m_comScaleList.Dispose();
+            m_comScaleList = null;
+            m_grpComScaleList = null;
+            m_txtLock = null;
+            m_grpLock = null;
             m_txtShow = null;
             m_btnMinus.Dispose();
             m_btnMinus = null;
@@ -144,8 +150,6 @@ namespace UI.CommonGame
             m_btnConfirm = null;
             m_bgpBtn = null;
             m_grpBtn = null;
-            m_txtLock = null;
-            m_grpLock = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 4 - 4
GameClient/Assets/Game/HotUpdate/Views/CommonGame/GoodsItemTipsView.cs

@@ -38,7 +38,7 @@ namespace GFGGame
             approachView.OnInit(_ui.m_comTipsApproach.target);
 
             _ui.m_comTipsBase.m_listTag.itemRenderer = RenderListTagItem;
-            _ui.m_comTipsBase.m_listItem.itemRenderer = ListItemRenderer;
+            _ui.m_comTipsBase.m_comScaleList.m_listItem.itemRenderer = ListItemRenderer;
             _ui.m_comBg.m_btnClose.onClick.Add(Hide);
         }
         protected override void AddEventListener()
@@ -124,8 +124,9 @@ namespace GFGGame
         }
         private void UpdateItems()
         {
-            _ui.m_comTipsBase.m_listItem.visible = itemCfg.itemsArr.Length > 0;
-            _ui.m_comTipsBase.m_listItem.numItems = itemCfg.itemsArr.Length;
+            _ui.m_comTipsBase.m_grpComScaleList.visible = itemCfg.itemsArr.Length > 0;
+            _ui.m_comTipsBase.m_comScaleList.m_listItem.visible = itemCfg.itemsArr.Length > 0;
+            _ui.m_comTipsBase.m_comScaleList.m_listItem.numItems = itemCfg.itemsArr.Length;
         }
         private void ListItemRenderer(int index, GObject obj)
         {
@@ -141,7 +142,6 @@ namespace GFGGame
         {
             _ui.m_comTipsApproach.target.visible = sourceDatas != null;
             if (sourceDatas == null) return;
-
             approachView.OnShow(sourceDatas);
         }
 

+ 4 - 4
GameClient/Assets/Game/HotUpdate/Views/Store/ItemExchangeView.cs

@@ -44,7 +44,7 @@ namespace GFGGame
             _ui.m_btnCancle.onClick.Add(Hide);
             _ui.m_comBg.m_btnClose.onClick.Add(Hide);
 
-            _ui.m_listItem.itemRenderer = ListItemRenderer;
+            _ui.m_comScaleList.m_listItem.itemRenderer = ListItemRenderer;
             _ui.m_listTag.itemRenderer = RenderListTagItem;
         }
 
@@ -112,10 +112,10 @@ namespace GFGGame
                 _ui.m_listTag.numItems = itemCfg.tagsArr.Length;
                 _ui.m_txtType.visible = true;
                 _ui.m_txtType.text = ItemTypeCfgArray.Instance.GetCfg(itemCfg.subType).name;
-
             }
-            _ui.m_listItem.numItems = itemCfg.itemsArr.Length;
-            _ui.m_listItem.visible = itemCfg.itemsArr.Length > 0;
+            _ui.m_comScaleList.m_listItem.numItems = itemCfg.itemsArr.Length;
+            _ui.m_comScaleList.m_listItem.visible = itemCfg.itemsArr.Length > 0;
+            _ui.m_grpComScaleList.visible = itemCfg.itemsArr.Length > 0;
             bool isUnLock = ShopDataManager.Instance.GetShopGoodsStateById(_shopCfg.id);
             _ui.m_grpBtn.visible = isUnLock;
             _ui.m_grpLock.visible = !isUnLock;

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