少年修仙传客户端代码仓库
client_Zxw
2018-09-19 f786e6bfb3c888a58e8076c99b11381b36bd42b2
System/MainInterfacePanel/FeaturesType2.cs
@@ -28,25 +28,41 @@
        {
            get { return m_Button; }
            set { m_Button = value; }
        }
        }
        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)
            {
                return;
            }
            m_FunctionName.text = functionForecastConfig.FuncName;
            m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString();
            m_FeaturesTypeIcon.SetSprite(functionForecastConfig.FuncIconKey);
            if (PlayerDatas.Instance.baseData.LV >= functionForecastConfig.DisplayLevel)
            m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString()+Language.Get("Z1041");
            bool  Type = false;
            int NeedLv = 0;
            int playerLv = PlayerDatas.Instance.baseData.LV;
            if (functionForecastConfig.OpenNumber - 2 >= featureNoticeModel.FunctionForecastIndex)
            {
                m_FunctionalLevel.color = new Color(141, 220, 17);
                Type = true;
                NeedLv = featureNoticeModel.GetOpenLv(functionForecastConfig.OpenNumber - 2);
            }
            if (!FuncOpen.Instance.IsFuncOpen(funcId) && Type && NeedLv> playerLv)
            {
                m_FeaturesTypeIcon.SetSprite("UnKnowIcon");
            }
            else
            {
                m_FunctionalLevel.color = new Color(255, 244, 205);
                m_FeaturesTypeIcon.SetSprite(functionForecastConfig.FuncIconKey);
            }
            if (PlayerDatas.Instance.baseData.LV >= functionForecastConfig.DisplayLevel)
            {
                m_FunctionalLevel.color = new Color32(141, 220, 17,255);
            }
            else
            {
                m_FunctionalLevel.color = new Color32(255, 244, 205,255);
            }
            if (FuncOpen.Instance.IsFuncOpen(funcId))
            {