From b24abe465bdc9725f7225aea36b049c9f99a94a5 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 21 九月 2018 16:55:46 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/Treasure/PotentialItemBehaviour.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/System/Treasure/PotentialItemBehaviour.cs b/System/Treasure/PotentialItemBehaviour.cs
index a569f2e..6e33d1f 100644
--- a/System/Treasure/PotentialItemBehaviour.cs
+++ b/System/Treasure/PotentialItemBehaviour.cs
@@ -51,9 +51,9 @@
             m_ItemBehaviour.SetItem(potentialBook.itemId, 1);
             m_CostCount.text = StringUtility.Contact(own, "/", need);
             m_CostCount.color = own >= need ? UIHelper.GetUIColor(TextColType.White) : UIHelper.GetUIColor(TextColType.Red);
-            m_Click.interactable = own >= need;
+            //m_Click.interactable = own >= need;
             m_AddBtnText.color = own >= need ? UIHelper.GetUIColor(TextColType.NavyBrown) : UIHelper.GetUIColor(TextColType.White);
-            m_Click.image.material = own >= need ? m_SmoothMask.imageMaterials[0] : m_SmoothMask.imageMaterials[1];
+            //m_Click.image.material = own >= need ? m_SmoothMask.imageMaterials[0] : m_SmoothMask.imageMaterials[1];
             var config = Config.Instance.Get<TreasureSkillConfig>(potentialBook.levelUpId);
             var upRate = potentialBook.successRate - config.InitialRate;
             m_SuccessRatio.text = Language.Get("HallowsWin_UpSuccess", StringUtility.Contact((upRate * 0.01f).ToString("f0"), "%"));
@@ -61,15 +61,15 @@
 
         private void SelectPotentialBook()
         {
-            if (own >= need)
-            {
+            //if (own >= need)
+            //{
                 model.selectedPotentialBook = potentialBook.itemId;
                 WindowCenter.Instance.Close<PotentialItemUseWin>();
-            }
-            else
-            {
-                SysNotifyMgr.Instance.ShowTip("SPItemNotEnough");
-            }
+            //}
+            //else
+            //{
+            //    SysNotifyMgr.Instance.ShowTip("SPItemNotEnough");
+            //}
         }
 
         private void Awake()

--
Gitblit v1.8.0