少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-20 a8c896286840cc372e48765e7039543b1c4e7c64
System/MainInterfacePanel/FeaturesType2.cs
@@ -5,7 +5,7 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using TableConfig;
//功能开启类型2
namespace Snxxz.UI {
@@ -32,19 +32,29 @@
        FeatureNoticeModel featureNoticeModel { get { return ModelCenter.Instance.GetModel<FeatureNoticeModel>(); } }
        public void GetTheFeatureID(int funcId)
        {
            var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(funcId);
            var functionForecastConfig = FunctionForecastConfig.Get(funcId);
            if (functionForecastConfig == null)
            {
                return;
            }
            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");
                m_FunctionName.text = "?";
            }
            else
            {
                m_FunctionName.text = functionForecastConfig.FuncName;
                m_FeaturesTypeIcon.SetSprite(functionForecastConfig.FuncIconKey);
            }
            if (PlayerDatas.Instance.baseData.LV >= functionForecastConfig.DisplayLevel)