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/FeaturesType1.cs | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/System/MainInterfacePanel/FeaturesType1.cs b/System/MainInterfacePanel/FeaturesType1.cs
index b5bdca0..1451a34 100644
--- a/System/MainInterfacePanel/FeaturesType1.cs
+++ b/System/MainInterfacePanel/FeaturesType1.cs
@@ -29,8 +29,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);
@@ -40,7 +40,15 @@
}
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