Эх сурвалжийг харах

item 样式修改,锦罗织造 触发事件修改

huangxiaoyue 2 жил өмнө
parent
commit
7a95e2d760

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

@@ -14,9 +14,9 @@ namespace UI.Store
         public GButton m_GetRewardBt;
         public GButton m_ContinueBt;
         public GButton m_ComeBt;
-        public GLoader m_touch;
         public GComponent m_NormalReward;
         public GList m_RewardList;
+        public GLoader m_touch;
         public const string URL = "ui://p9mtgheoot07td8";
         public const string PACKAGE_NAME = "Store";
         public const string RES_NAME = "BrocadeWeavRewardItem";
@@ -71,9 +71,9 @@ namespace UI.Store
             m_GetRewardBt = (GButton)comp.GetChild("GetRewardBt");
             m_ContinueBt = (GButton)comp.GetChild("ContinueBt");
             m_ComeBt = (GButton)comp.GetChild("ComeBt");
-            m_touch = (GLoader)comp.GetChild("touch");
             m_NormalReward = (GComponent)comp.GetChild("NormalReward");
             m_RewardList = (GList)comp.GetChild("RewardList");
+            m_touch = (GLoader)comp.GetChild("touch");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -84,9 +84,9 @@ namespace UI.Store
             m_GetRewardBt = null;
             m_ContinueBt = null;
             m_ComeBt = null;
-            m_touch = null;
             m_NormalReward = null;
             m_RewardList = null;
+            m_touch = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 7 - 1
GameClient/Assets/Game/HotUpdate/Views/Store/StoreBrocadeWeavView.cs

@@ -220,9 +220,15 @@ namespace GFGGame
             var superLevelRewardGet = BattlePassTaskDataManager.Instance.CheckSuperLevelRewardGet(level);
             item.m_RewardList.data = (battlePassCfg.bonusSpecialArr, true , state, superLevelRewardGet);
             item.m_RewardList.numItems = battlePassCfg.bonusSpecialArr.Length;
-            if (state == 1) { 
+            if (state == 1)
+            {
                 item.m_touch.onClick.Set(OnBtnGetClick);
                 item.m_touch.data = battlePassCfg.level;
+                item.m_touch.touchable = true;
+            }
+            else {
+                item.m_touch.onClick.Clear();
+                item.m_touch.touchable = false;
             }
 
             //设置按钮状态

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

@@ -160,6 +160,7 @@ namespace GFGGame
                     {
                         _goBackDatas.Add(name, new List<object[]>());
                     }
+
                     _goBackDatas[name].Add(goBackParams);
                 }
                 Debug.Log("当前打开:" + name);

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


BIN
GameClient/Assets/ResIn/UI/Task/Task_fui.bytes