From 16f61d5473891ddce81191825c6229a4b96fcd16 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期一, 17 九月 2018 17:49:09 +0800
Subject: [PATCH] 3625 【前端】功能预告配置,下下个功能不显示
---
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