瀏覽代碼

滑动列表特效残留问题

huangxiaoyue 1 年之前
父節點
當前提交
150a72da00

+ 4 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityDay7/UI_ActivityDay7UI.cs

@@ -13,11 +13,11 @@ namespace UI.ActivityDay7
         public GButton m_tip;
         public GProgressBar m_ExpProcess;
         public GList m_DayList;
-        public GList m_TaskList;
         public GLoader m_EndIndex;
         public GLoader m_StartIndex;
         public GTextField m_Score;
         public GTextField m_txtLevel;
+        public UI_comTaskList m_comTaskList;
         public const string URL = "ui://kupdwln7nyhm1";
         public const string PACKAGE_NAME = "ActivityDay7";
         public const string RES_NAME = "ActivityDay7UI";
@@ -71,11 +71,11 @@ namespace UI.ActivityDay7
             m_tip = (GButton)comp.GetChild("tip");
             m_ExpProcess = (GProgressBar)comp.GetChild("ExpProcess");
             m_DayList = (GList)comp.GetChild("DayList");
-            m_TaskList = (GList)comp.GetChild("TaskList");
             m_EndIndex = (GLoader)comp.GetChild("EndIndex");
             m_StartIndex = (GLoader)comp.GetChild("StartIndex");
             m_Score = (GTextField)comp.GetChild("Score");
             m_txtLevel = (GTextField)comp.GetChild("txtLevel");
+            m_comTaskList = (UI_comTaskList)UI_comTaskList.Create(comp.GetChild("comTaskList"));
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -85,11 +85,12 @@ namespace UI.ActivityDay7
             m_tip = null;
             m_ExpProcess = null;
             m_DayList = null;
-            m_TaskList = null;
             m_EndIndex = null;
             m_StartIndex = null;
             m_Score = null;
             m_txtLevel = null;
+            m_comTaskList.Dispose();
+            m_comTaskList = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityDay7/UI_comTaskList.cs

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

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityDay7/UI_comTaskList.cs.meta

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

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_ListGiftItem.cs

@@ -10,9 +10,9 @@ namespace UI.Store
         public Controller m_c1;
         public Controller m_c2;
         public GImage m_imgDouble;
-        public GGraph m_holderfEff;
         public GTextField m_txtDesc;
         public GGroup m_grpDiscount;
+        public GGraph m_holderfEff;
         public GLoader m_icon;
         public GTextField m_txtName;
         public GTextField m_txtEndTime;
@@ -69,9 +69,9 @@ namespace UI.Store
             m_c1 = comp.GetController("c1");
             m_c2 = comp.GetController("c2");
             m_imgDouble = (GImage)comp.GetChild("imgDouble");
-            m_holderfEff = (GGraph)comp.GetChild("holderfEff");
             m_txtDesc = (GTextField)comp.GetChild("txtDesc");
             m_grpDiscount = (GGroup)comp.GetChild("grpDiscount");
+            m_holderfEff = (GGraph)comp.GetChild("holderfEff");
             m_icon = (GLoader)comp.GetChild("icon");
             m_txtName = (GTextField)comp.GetChild("txtName");
             m_txtEndTime = (GTextField)comp.GetChild("txtEndTime");
@@ -84,9 +84,9 @@ namespace UI.Store
             m_c1 = null;
             m_c2 = null;
             m_imgDouble = null;
-            m_holderfEff = null;
             m_txtDesc = null;
             m_grpDiscount = null;
+            m_holderfEff = null;
             m_icon = null;
             m_txtName = null;
             m_txtEndTime = null;

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/ActivityDay7/ActivityDay7View.cs

@@ -47,7 +47,7 @@ namespace GFGGame
             _ui.m_btnBack.onClick.Add(OnBtnBackClick);
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("qrhd_banner_yxzy");
             _ui.m_DayList.itemRenderer = DayListRenderer;
-            _ui.m_TaskList.itemRenderer = TaskListRenderer;
+            _ui.m_comTaskList.m_TaskList.itemRenderer = TaskListRenderer;
             _ui.m_tip.onClick.Add(RuleController.ShowRuleView);
             _ui.m_tip.data = 300014;
         }
@@ -175,11 +175,11 @@ namespace GFGGame
             var taskIdArr = activity7DaysTaskCfg.taskIdArr;
             //排序根据领取状态
             var taskCfgs = TaskDataManager.Instance.GetTaskCfgs(taskIdArr);
-            _ui.m_TaskList.data = taskCfgs;
-            _ui.m_TaskList.numItems = taskIdArr.Length;
-            if (_ui.m_TaskList.numItems > 0)
+            _ui.m_comTaskList.m_TaskList.data = taskCfgs;
+            _ui.m_comTaskList.m_TaskList.numItems = taskIdArr.Length;
+            if (_ui.m_comTaskList.m_TaskList.numItems > 0)
             {
-                _ui.m_TaskList.ScrollToView(0);
+                _ui.m_comTaskList.m_TaskList.ScrollToView(0);
             }
         }
 

二進制
GameClient/Assets/ResIn/UI/ActivityDay7/ActivityDay7_fui.bytes


二進制
GameClient/Assets/ResIn/UI/Store/Store_fui.bytes