From f786e6bfb3c888a58e8076c99b11381b36bd42b2 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期三, 19 九月 2018 15:06:00 +0800
Subject: [PATCH] 3677 【前端】功能预告逻辑优化
---
System/MainInterfacePanel/FeaturesType2.cs | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/System/MainInterfacePanel/FeaturesType2.cs b/System/MainInterfacePanel/FeaturesType2.cs
index fccb772..025a9a5 100644
--- a/System/MainInterfacePanel/FeaturesType2.cs
+++ b/System/MainInterfacePanel/FeaturesType2.cs
@@ -32,6 +32,7 @@
FeatureNoticeModel featureNoticeModel { get { return ModelCenter.Instance.GetModel<FeatureNoticeModel>(); } }
public void GetTheFeatureID(int funcId)
{
+ DebugEx.LogError("ID"+ featureNoticeModel.FunctionForecastIndex);
var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(funcId);
if (functionForecastConfig == null)
{
@@ -39,7 +40,15 @@
}
m_FunctionName.text = functionForecastConfig.FuncName;
m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString()+Language.Get("Z1041");
- if (!FuncOpen.Instance.IsFuncOpen(funcId) && functionForecastConfig.OpenNumber-1 > featureNoticeModel.FunctionForecastIndex)
+ bool Type = false;
+ int NeedLv = 0;
+ int playerLv = PlayerDatas.Instance.baseData.LV;
+ if (functionForecastConfig.OpenNumber - 2 >= featureNoticeModel.FunctionForecastIndex)
+ {
+ Type = true;
+ NeedLv = featureNoticeModel.GetOpenLv(functionForecastConfig.OpenNumber - 2);
+ }
+ if (!FuncOpen.Instance.IsFuncOpen(funcId) && Type && NeedLv> playerLv)
{
m_FeaturesTypeIcon.SetSprite("UnKnowIcon");
}
--
Gitblit v1.8.0