浏览代码

取消天才地宝获取读经按钮

lzx 1 天之前
父节点
当前提交
a3ff9bbf06

+ 7 - 1
Assets/Scripts/GameUI/UI/HeroInformationPanel/SelectBreakthroughItemPanel.cs

@@ -44,6 +44,12 @@ namespace Fort23.Mono
             Btn_Close.onClick.AddListener(() => { UIManager.Instance.HideUIUIPanel(this); });
             Btn_Affirm.onClick.AddListener(() =>
             {
+                if (!PlayerManager.Instance.BagController.IsEnough(breakthrough.itemId, 1))
+                {
+                    ItemSourcePanel.OpenPanel(itemConfig.ID);
+                    return;
+                }
+
                 this.callBack?.Invoke();
                 EventManager.Instance.Dispatch(CustomEventType.RefenceBreakthrough, null);
                 UIManager.Instance.HideUIUIPanel(this);
@@ -91,7 +97,7 @@ namespace Fort23.Mono
                 }
                 else
                 {
-                    Btn_Affirm.gameObject.SetActive(false);
+                    Btn_Affirm.gameObject.SetActive(true);
                     Btn_Cancel.gameObject.SetActive(true);
                     Text_NoEnough.gameObject.SetActive(true);
                 }

+ 5 - 2
Assets/Scripts/GameUI/UI/ItemDetailsPanel/FaBaoDetailsPanel.cs

@@ -92,10 +92,10 @@ namespace Fort23.Mono
                     case 1:
                         Icon_Attribute.icon_name = "dec_jin";
                         break;
-                    case 2:
+                    case 4:
                         Icon_Attribute.icon_name = "dec_mu";
                         break;
-                    case 4:
+                    case 2:
                         Icon_Attribute.icon_name = "dec_shui";
                         break;
                     case 8:
@@ -104,6 +104,9 @@ namespace Fort23.Mono
                     case 16:
                         Icon_Attribute.icon_name = "dec_tu";
                         break;
+                    case 0:
+                        Icon_Attribute.icon_name = "dec_fuzhu2";
+                        break;
                 }
 
                 cts.AddTask(CreatFaBaoSkillWidget(faBaoInfo));

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

@@ -92,11 +92,11 @@ namespace Fort23.Mono
                     csc.ChangeState(0);
                     Icon_Attribute.icon_name = "dec_jin2";
                     break;
-                case 2:
+                case 4:
                     csc.ChangeState(1);
                     Icon_Attribute.icon_name = "dec_mu2";
                     break;
-                case 4:
+                case 2:
                     csc.ChangeState(2);
                     Icon_Attribute.icon_name = "dec_shui2";
                     break;