From a0ede150686a218c92b901b1f20aef12a9913890 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期五, 14 九月 2018 09:36:59 +0800
Subject: [PATCH] 1930【1.0.15】【主干】功能预告跳转八卦炉激活,功能预告界面未关闭
---
System/MainInterfacePanel/FeaturesType2.cs | 30 ++++++++++++++++++++++++++++--
1 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/System/MainInterfacePanel/FeaturesType2.cs b/System/MainInterfacePanel/FeaturesType2.cs
index 67cca2f..c62cedf 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; }
@@ -36,8 +38,32 @@
return;
}
m_FunctionName.text = functionForecastConfig.FuncName;
- m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString();
+ m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString()+Language.Get("Z1041");
m_FeaturesTypeIcon.SetSprite(functionForecastConfig.FuncIconKey);
+ if (PlayerDatas.Instance.baseData.LV >= functionForecastConfig.DisplayLevel)
+ {
+ m_FunctionalLevel.color = new Color32(141, 220, 17,255);
+ }
+ else
+ {
+ m_FunctionalLevel.color = new Color32(255, 244, 205,255);
+ }
+ 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