Browse Source

修改bug

lzx 2 days ago
parent
commit
254f940b37

+ 1 - 1
Assets/Scripts/Core/UI/Core/UIManager.cs

@@ -1347,7 +1347,7 @@ namespace Fort23.Mono
             }
             }
 
 
             popupPanel.transform.SetParent(parent, false);
             popupPanel.transform.SetParent(parent, false);
-            // popupPanel.transform.SetAsFirstSibling();
+            popupPanel.transform.SetAsFirstSibling();
             int index01 = uiPanel.GObjectPoolInterface.transform.GetSiblingIndex();
             int index01 = uiPanel.GObjectPoolInterface.transform.GetSiblingIndex();
             // popupPanel.transform.SetParent(parent, false);
             // popupPanel.transform.SetParent(parent, false);
 
 

+ 1 - 1
Assets/Scripts/GameUI/UI/HeroInformationPanel/HeroBreakthroughPanel.cs

@@ -517,7 +517,7 @@ namespace Fort23.Mono
         public async static CTask<HeroBreakthroughPanel> OpenPanel()
         public async static CTask<HeroBreakthroughPanel> OpenPanel()
         {
         {
             HeroBreakthroughPanel heroBreakthroughPanel =
             HeroBreakthroughPanel heroBreakthroughPanel =
-                await UIManager.Instance.LoadAndOpenPanel<HeroBreakthroughPanel>(null, UILayer.Top, isShowBG: true);
+                await UIManager.Instance.LoadAndOpenPanel<HeroBreakthroughPanel>(null, UILayer.Middle, isShowBG: true);
             heroBreakthroughPanel.CustomInit();
             heroBreakthroughPanel.CustomInit();
             return heroBreakthroughPanel;
             return heroBreakthroughPanel;
         }
         }

+ 3 - 3
Assets/Scripts/GameUI/UI/HeroInformationPanel/SelectBreakthroughItemPanel.cs

@@ -20,8 +20,8 @@ namespace Fort23.Mono
 
 
         private void Init()
         private void Init()
         {
         {
-            isPopUi = true;
-            isAddStack = false;
+            IsShowAppBar = false;
+            isAddStack = true;
         }
         }
 
 
         protected override void AddEvent()
         protected override void AddEvent()
@@ -113,7 +113,7 @@ namespace Fort23.Mono
 
 
         public async static CTask<SelectBreakthroughItemPanel> OpenPanel(BreakthroughItemWidget breakthroughItemWidget, Action callBack)
         public async static CTask<SelectBreakthroughItemPanel> OpenPanel(BreakthroughItemWidget breakthroughItemWidget, Action callBack)
         {
         {
-            SelectBreakthroughItemPanel selectBreakthroughItemPanel = await UIManager.Instance.LoadAndOpenPanel<SelectBreakthroughItemPanel>(null,UILayer.Top,isFocus:false);
+            SelectBreakthroughItemPanel selectBreakthroughItemPanel = await UIManager.Instance.LoadAndOpenPanel<SelectBreakthroughItemPanel>(null,UILayer.Middle,isFocus:false);
 
 
             selectBreakthroughItemPanel.CustomInit(breakthroughItemWidget, callBack);
             selectBreakthroughItemPanel.CustomInit(breakthroughItemWidget, callBack);
             return selectBreakthroughItemPanel;
             return selectBreakthroughItemPanel;

+ 3 - 3
Assets/Scripts/GameUI/UI/HeroInformationPanel/SelectElixirPanel.cs

@@ -24,8 +24,8 @@ namespace Fort23.Mono
 
 
         private void Init()
         private void Init()
         {
         {
-            isPopUi = true;
-            isAddStack = false;
+            IsShowAppBar = false;
+            isAddStack = true;
         }
         }
 
 
         protected override void AddEvent()
         protected override void AddEvent()
@@ -168,7 +168,7 @@ namespace Fort23.Mono
 
 
         public async static CTask<SelectElixirPanel> OpenPanel(BreakthroughItemWidget itemInfo, Action<ElixirItemWidget> callback = null)
         public async static CTask<SelectElixirPanel> OpenPanel(BreakthroughItemWidget itemInfo, Action<ElixirItemWidget> callback = null)
         {
         {
-            SelectElixirPanel selectElixirPanel = await UIManager.Instance.LoadAndOpenPanel<SelectElixirPanel>(null, UILayer.Top, isFocus: false);
+            SelectElixirPanel selectElixirPanel = await UIManager.Instance.LoadAndOpenPanel<SelectElixirPanel>(null, UILayer.Middle, isFocus: false);
             selectElixirPanel.CustomInit(itemInfo, callback);
             selectElixirPanel.CustomInit(itemInfo, callback);
             return selectElixirPanel;
             return selectElixirPanel;
         }
         }

+ 1 - 1
Assets/Scripts/GameUI/UI/HeroInformationPanel/UseExpElixirPanel.cs

@@ -18,7 +18,7 @@ namespace Fort23.Mono
 
 
         private void Init()
         private void Init()
         {
         {
-            // isPopUi = true;
+            IsShowAppBar = false;
             isAddStack = true;
             isAddStack = true;
         }
         }
 
 

+ 2 - 2
Assets/Scripts/GameUI/UI/ItemDetailsPanel/ItemSourcePanel.cs

@@ -60,11 +60,11 @@ namespace Fort23.Mono
             return await base.AsyncInit(uiData);
             return await base.AsyncInit(uiData);
         }
         }
 
 
-        private void OnClick(ItemWidgetBasic obj)
+        private async void OnClick(ItemWidgetBasic obj)
         {
         {
             SkipToWidget skipToWidget = obj as SkipToWidget;
             SkipToWidget skipToWidget = obj as SkipToWidget;
             isSkipto = true;
             isSkipto = true;
-            UIManager.Instance.HideUIUIPanel(this);
+            await UIManager.Instance.HideUIUIPanel(this);
             SkiptoHelper.Skipto(skipToWidget.SkiptoConfig.ID);
             SkiptoHelper.Skipto(skipToWidget.SkiptoConfig.ID);
         }
         }