Browse Source

锦罗织造 增加名字和查看全图

huangxiaoyue 1 year ago
parent
commit
12e43fe009

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

@@ -17,6 +17,7 @@ namespace UI.Store
         public GList m_RewardList;
         public GButton m_btnGetAll;
         public UI_BrocadeWeavReward m_SpecialReward;
+        public GButton m_btnShow;
         public const string URL = "ui://p9mtgheoot07tcq";
         public const string PACKAGE_NAME = "Store";
         public const string RES_NAME = "StoreBrocadeWeavUI";
@@ -74,6 +75,7 @@ namespace UI.Store
             m_RewardList = (GList)comp.GetChild("RewardList");
             m_btnGetAll = (GButton)comp.GetChild("btnGetAll");
             m_SpecialReward = (UI_BrocadeWeavReward)UI_BrocadeWeavReward.Create(comp.GetChild("SpecialReward"));
+            m_btnShow = (GButton)comp.GetChild("btnShow");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -89,6 +91,7 @@ namespace UI.Store
             m_btnGetAll = null;
             m_SpecialReward.Dispose();
             m_SpecialReward = null;
+            m_btnShow = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitShowView.cs

@@ -42,7 +42,7 @@ namespace GFGGame
             _ui = UI_SuitShowUI.Create();
             this.viewCom = _ui.target;
             isfullScreen = true;
-            isReturnView = true;
+            //isReturnView = true;
             this.clickBlankToClose = false;
 
             _dressUpObjUI = new DressUpObjUI("SceneDressUp");

+ 21 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreBrocadeWeavView.cs

@@ -1,3 +1,4 @@
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using ET;
@@ -39,6 +40,7 @@ namespace GFGGame
             _ui.m_RewardList.SetVirtual();
             _ui.m_SpecialReward.m_RewardList.itemRenderer = SpecialRewardRender;
             _ui.m_tip.onClick.Add(RuleController.ShowRuleView);
+            _ui.m_btnShow.onClick.Add(OnBtnShowClick);
             _ui.m_tip.data = 300012;
             _ui.m_LevelProcess.m_loaIcon.url =
             ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(ConstItemID.BATTLE_PASS_CURRENCY).res);
@@ -154,6 +156,25 @@ namespace GFGGame
             // SetBattlePassLevel();
         }
 
+        private void OnBtnShowClick(EventContext context)
+        {
+            var dataManager = BattlePassTaskDataManager.Instance;
+            var allSpecialCfg = dataManager.GetAllSpecialCfg();
+            ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(allSpecialCfg[1].Key);
+            var suitId = itemCfg.suitId;
+            int _suitTypeId = 0;
+            for (int i = 0; i < SuitGuideMenuCfgArray.Instance.dataArray.Length; i++)
+            {
+                string[] suitIds = SuitGuideMenuCfgArray.Instance.dataArray[i].suitIds.Split(';');
+                if (Array.IndexOf(suitIds, suitId.ToString()) >= 0)
+                {
+                    _suitTypeId = SuitGuideMenuCfgArray.Instance.dataArray[i].id;
+                    break;
+                }
+            }
+            ViewManager.Show<SuitShowView>(new object[] { _suitTypeId, suitId, new List<int>() { suitId }, false });
+        }
+
         //领取全部奖励
         private async void OnBtnGetAllClick(EventContext context)
         {

BIN
GameClient/Assets/ResIn/UI/Store/Store_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/Store/Store_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Store/Store_atlas0_2.png


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