فهرست منبع

修改导航栏有时候小时bug

lzx 1 ماه پیش
والد
کامیت
3a226582aa

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

@@ -47,7 +47,7 @@ namespace Fort23.Mono
 
 		public override CTask LoseFocus()
 		{
-			TitlePanel.ClosePanel();
+			// TitlePanel.ClosePanel();
 			return base.LoseFocus();
 		}
 

+ 4 - 0
Assets/Scripts/GameUI/UI/ShopPanel/ShopPanel.cs

@@ -43,6 +43,10 @@ namespace Fort23.Mono
         public override CTask GetFocus()
         {
             AppBarPanel.OpenPanel(this);
+            if (currentSelectedShopBtnWidget != null)
+            {
+                currentSelectedShopBtnWidget.OnPointerClick();
+            }
 
             return base.GetFocus();
         }