From b8f56070e35503272bb387b5d62476cda3d22b96 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 17 九月 2018 19:03:47 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/MainInterfacePanel/FeaturesType2.cs | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/System/MainInterfacePanel/FeaturesType2.cs b/System/MainInterfacePanel/FeaturesType2.cs
index c62cedf..a94ed5a 100644
--- a/System/MainInterfacePanel/FeaturesType2.cs
+++ b/System/MainInterfacePanel/FeaturesType2.cs
@@ -28,8 +28,8 @@
{
get { return m_Button; }
set { m_Button = value; }
- }
-
+ }
+ FeatureNoticeModel featureNoticeModel { get { return ModelCenter.Instance.GetModel<FeatureNoticeModel>(); } }
public void GetTheFeatureID(int funcId)
{
var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(funcId);
@@ -39,7 +39,14 @@
}
m_FunctionName.text = functionForecastConfig.FuncName;
m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString()+Language.Get("Z1041");
- m_FeaturesTypeIcon.SetSprite(functionForecastConfig.FuncIconKey);
+ if (!FuncOpen.Instance.IsFuncOpen(funcId) && functionForecastConfig.OpenNumber > featureNoticeModel.FunctionForecastIndex)
+ {
+ m_FeaturesTypeIcon.SetSprite("UnKnowIcon");
+ }
+ else
+ {
+ m_FeaturesTypeIcon.SetSprite(functionForecastConfig.FuncIconKey);
+ }
if (PlayerDatas.Instance.baseData.LV >= functionForecastConfig.DisplayLevel)
{
m_FunctionalLevel.color = new Color32(141, 220, 17,255);
--
Gitblit v1.8.0