lzx hace 3 días
padre
commit
506d0019aa

+ 2 - 2
Assets/Res/UI/ShopPanel/ShopBoxWidget.prefab

@@ -1895,7 +1895,7 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: d272e2a31d4cd8c408dc4d1c8963f314, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  id: 10237
+  id: 10798
 --- !u!1 &2720669039826339307
 GameObject:
   m_ObjectHideFlags: 0
@@ -3242,7 +3242,7 @@ GameObject:
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
   m_StaticEditorFlags: 0
-  m_IsActive: 1
+  m_IsActive: 0
 --- !u!224 &4352261052017720437
 RectTransform:
   m_ObjectHideFlags: 0

+ 8 - 4
Assets/Scripts/GameUI/UI/AppBarPanel/AppBarPanel.cs

@@ -111,15 +111,15 @@ namespace Fort23.Mono
             await DivineSenceInfoPanel.OpenPanel((count, useItems) => { Bnt_shengShi_onClick(count, useItems); });
         }
 
-        public async void Btn_Shop_Click(int shopId = 0)
+        public async void Btn_Shop_Click(int shopId = 0,bool isQz = false)
         {
             CloseMenu();
-            if (currentOpenUIPanel is ShopPanel)
+            if (currentOpenUIPanel is ShopPanel && !isQz)
             {
                 return;
             }
 
-
+    
             UIPanel uiPanel = currentOpenUIPanel;
 
             CombatDrive.Instance.CombatController.isUpdate = false;
@@ -127,7 +127,11 @@ namespace Fort23.Mono
             if (uiPanel is CaveMainPanel || uiPanel is SkillSelectPanel || uiPanel is ShopPanel ||
                 uiPanel is MainHeroPanel)
             {
-                UIManager.Instance.HideUIUIPanel(uiPanel, isBreadcrumbBarPanel: false);
+                if (!(currentOpenUIPanel is ShopPanel))
+                {
+                     UIManager.Instance.HideUIUIPanel(uiPanel, isBreadcrumbBarPanel: false);
+                }
+               
             }
 
             if (!shopPanel.IsClose)

+ 18 - 6
Assets/Scripts/GameUI/UI/ShopPanel/ShopPanel.cs

@@ -97,6 +97,23 @@ namespace Fort23.Mono
         public async override CTask<bool> AsyncInit(object[] uiData)
         {
             shopId = int.Parse(uiData[0].ToString());
+            
+            foreach (var shopGroupWidgetType1 in _shopGroupWidgetType1s)
+            {
+                UIManager.Instance.DormancyGComponent(shopGroupWidgetType1);
+            }
+
+            _shopGroupWidgetType1s.Clear();
+  
+
+            foreach (var shopBtnWidget in _shopBtnWidgets)
+            {
+                UIManager.Instance.DormancyGComponent(shopBtnWidget);
+            }
+
+            _shopBtnWidgets.Clear();
+            currentSelectedShopBtnWidget = null;
+            
             List<ShopGroupConfig> shopGroupConfigs = ConfigComponent.Instance.GetAll<ShopGroupConfig>().ToList();
             shopGroupConfigs.Sort(Sort);
             foreach (var shopGroupConfig in shopGroupConfigs)
@@ -250,12 +267,7 @@ namespace Fort23.Mono
             }
 
             _shopGroupWidgetType1s.Clear();
-            // foreach (var widget in _energyWidgets)
-            // {
-            //     UIManager.Instance.DormancyGComponent(widget);
-            // }
-            //
-            // _energyWidgets.Clear();
+  
 
             foreach (var shopBtnWidget in _shopBtnWidgets)
             {

+ 1 - 1
Assets/Scripts/GameUI/Utility/SkiptoHelper.cs

@@ -34,7 +34,7 @@ namespace Mono.Utility
                     return;
                 //商店界面
                 case 4:
-                    UIManager.Instance.GetComponent<AppBarPanel>().Btn_Shop_Click(skiptoConfig.SkipArguments[0]);
+                    UIManager.Instance.GetComponent<AppBarPanel>().Btn_Shop_Click(skiptoConfig.SkipArguments[0], true);
                     return;
                 //实用神识界面
                 case 5: