Browse Source

商城列表特效超出问题

huangxiaoyue 1 year ago
parent
commit
374fc75442

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreMonthList.cs

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

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreMonthList.cs.meta

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

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

@@ -22,7 +22,7 @@ namespace UI.Store
         public GTextField m_txtTime;
         public GButton m_btnGet;
         public GTextField m_txtGiftBag;
-        public GList m_list;
+        public UI_StoreMonthList m_storeMonthList;
         public GButton m_btnBlackReward;
         public GGraph m_holderfEff;
         public const string URL = "ui://p9mtgheoqik1tc0";
@@ -87,7 +87,7 @@ namespace UI.Store
             m_txtTime = (GTextField)comp.GetChild("txtTime");
             m_btnGet = (GButton)comp.GetChild("btnGet");
             m_txtGiftBag = (GTextField)comp.GetChild("txtGiftBag");
-            m_list = (GList)comp.GetChild("list");
+            m_storeMonthList = (UI_StoreMonthList)UI_StoreMonthList.Create(comp.GetChild("storeMonthList"));
             m_btnBlackReward = (GButton)comp.GetChild("btnBlackReward");
             m_holderfEff = (GGraph)comp.GetChild("holderfEff");
         }
@@ -109,7 +109,8 @@ namespace UI.Store
             m_txtTime = null;
             m_btnGet = null;
             m_txtGiftBag = null;
-            m_list = null;
+            m_storeMonthList.Dispose();
+            m_storeMonthList = null;
             m_btnBlackReward = null;
             m_holderfEff = null;
             if(disposeTarget && target != null)

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Store/StoreMonthView.cs

@@ -44,7 +44,7 @@ namespace GFGGame
             this.bringToFontOnClick = false;
 
             _valueBarController = new ValueBarController(_ui.m_valueBar);
-            _ui.m_list.itemRenderer = ListItemRenderer;
+            _ui.m_storeMonthList.m_list.itemRenderer = ListItemRenderer;
             _ui.m_btnRule.onClick.Add(RuleController.ShowRuleView);
             _ui.m_btnBuy.target.onClick.Add(OnBtnBuyCardClick);
             _ui.m_btnGet.onClick.Add(OnBtnGetClick);
@@ -90,7 +90,7 @@ namespace GFGGame
             _shopCfgs = ShopCfgArray.Instance.GetCfgsBymenu1Andmenu2(ConstStoreTabId.STORE_MONTH_CARD, menu2);
             _shopCfgs = ShopDataManager.Instance.RemoveNotOpenCfg(_shopCfgs);
             _shopCfgs = ShopDataManager.Instance.SortShopGoodsCfgs(_shopCfgs);
-            _ui.m_list.numItems = _shopCfgs.Count;
+            _ui.m_storeMonthList.m_list.numItems = _shopCfgs.Count;
 
             MonthlyCardPrivilegeCfg privilegeCfg = MonthlyCardPrivilegeCfgArray.Instance.GetCfg(MonthCardPrivilegeType.Privilege1);
 

BIN
GameClient/Assets/ResIn/UI/Store/Store_fui.bytes