From 259af9624cb7f4735e0efbc85f78d7ddffec6b36 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期三, 12 九月 2018 17:50:30 +0800
Subject: [PATCH] 3488 【前端】【1.0.15】【1.1.0】功能预告优化

---
 System/MainInterfacePanel/FeaturesType2.cs |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/System/MainInterfacePanel/FeaturesType2.cs b/System/MainInterfacePanel/FeaturesType2.cs
index efcb32b..995455f 100644
--- a/System/MainInterfacePanel/FeaturesType2.cs
+++ b/System/MainInterfacePanel/FeaturesType2.cs
@@ -12,11 +12,13 @@
     public class FeaturesType2:MonoBehaviour {
         [SerializeField] Text m_FunctionalLevel;//鍔熻兘绛夌骇
         [SerializeField] Text m_FunctionName;//鍔熻兘鍚�
-        [SerializeField] Image m_FeaturesTypeIcon;//鍔熻兘鍥炬爣
+        [SerializeField] ImageEx m_FeaturesTypeIcon;//鍔熻兘鍥炬爣
         [SerializeField] GameObject m_ImageSelected;
         [SerializeField] Button m_Button;
         [SerializeField] GameObject m_DefaultBar;
         [SerializeField] GameObject m_SelectedBar;
+        [SerializeField] GameObject m_Img_Done;
+        [SerializeField] ImageEx m_NameBottom;
         public GameObject ImageSelected
         {
             get { return m_ImageSelected; }
@@ -38,13 +40,29 @@
             m_FunctionName.text = functionForecastConfig.FuncName;
             m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString();
             m_FeaturesTypeIcon.SetSprite(functionForecastConfig.FuncIconKey);
+            if (PlayerDatas.Instance.baseData.LV >= functionForecastConfig.DisplayLevel)
+            {
+                m_FunctionalLevel.color = new Color(141, 220, 17);
+            }
+            else
+            {
+                m_FunctionalLevel.color = new Color(255, 244, 205);
+            }
             if (FuncOpen.Instance.IsFuncOpen(funcId))
             {
                 m_SelectedBar.SetActive(true);
+                m_Img_Done.SetActive(true);
+                m_FeaturesTypeIcon.gray = false;
+                m_NameBottom.gray = false;
+                m_FunctionName.color = new Color(255, 244, 205);
             }
             else
             {
                 m_SelectedBar.SetActive(false);
+                m_Img_Done.SetActive(false);
+                m_FeaturesTypeIcon.gray = true;
+                m_NameBottom.gray = true;
+                m_FunctionName.color = new Color(255, 244, 205);
             }
         }
 

--
Gitblit v1.8.0