少年修仙传客户端代码仓库
client_Hale
2019-05-15 4b299a6af2dacff0c295ced4b62665c04beba720
System/Skill/ExpertSkillSelectWin.cs
@@ -19,11 +19,13 @@
        [SerializeField] UIAlphaTween m_AlphaTween;
        [SerializeField] Image m_SkillIcon;
        [SerializeField] Text m_SkillName;
        [SerializeField] Text m_Reiki;
        [SerializeField] Image m_ReikiIcon;
        [SerializeField] Text m_ReikiPoint;
        [SerializeField] ExpertSkillCyclicScroll m_CyclicScroll;
        [SerializeField] LayoutElement m_LayoutElement;
        [SerializeField] Button m_Active;
        [SerializeField] Text m_ActiveLabel;
        [SerializeField] UIEffect m_ActiveEffect;
        [SerializeField] Button m_Select;
        [SerializeField] Button m_Close1;
        [SerializeField] Button m_Close2;
@@ -160,8 +162,7 @@
                var property = skillConfig.RequireProperty();
                var propertyConfig = PlayerPropertyConfig.Get(property);
                m_Reiki.text = propertyConfig.Name;
                m_Reiki.color = UIHelper.GetPropertyColor(property);
                m_ReikiIcon.SetSprite("XT_LG_" + property);
                var propertyValueLabel = UIHelper.AppendColor(TextColType.Green, UIHelper.GetPropertyValue((PropertyType)property).ToString());
                m_ReikiPoint.text = string.Format("我的{0}:{1}",
@@ -230,11 +231,26 @@
            TreasurePotential expert;
            if (model.TryGetPotential(selectExpert, out expert))
            {
                var satisfyActive = model.SatisfyActiveExpert(selectExpert);
                var error = 0;
                var satisfyActive = model.SatisfyActiveExpert(selectExpert, out error);
                var activeLevel = 0;
                model.TryGetExpertActiveLevel(selectExpert, out activeLevel);
                m_Select.gameObject.SetActive(activeLevel > 0 && !satisfyActive && !used);
                m_Active.gameObject.SetActive(satisfyActive);
                m_Active.gameObject.SetActive(satisfyActive || error == 3);
                m_Active.SetColorful(m_ActiveLabel, satisfyActive);
                if (satisfyActive || error == 3)
                {
                    if (satisfyActive && !m_ActiveEffect.IsPlaying)
                    {
                        m_ActiveEffect.Play();
                    }
                    else if (!satisfyActive && m_ActiveEffect.IsPlaying)
                    {
                        m_ActiveEffect.StopImediatly();
                    }
                }
            }
        }
@@ -259,6 +275,14 @@
        {
            if (m_CyclicScroll.IsPlaying)
            {
                return;
            }
            var error = 0;
            var satisfyActive = model.SatisfyActiveExpert(selectExpert, out error);
            if (!satisfyActive)
            {
                ExpertSkillActiveRemindWin.skillId = selectExpert;
                WindowCenter.Instance.Open<ExpertSkillActiveRemindWin>();
                return;
            }
            var pak = new CA516_tagCMSelectSkillElement();
@@ -304,7 +328,6 @@
            [SerializeField] ImageEx m_Icon;
            [SerializeField] Text m_SkillName;
            [SerializeField] ImageEx m_ReikiBottom;
            [SerializeField] Text m_Reiki;
            [SerializeField] Transform m_ContainerSelect;
            [SerializeField] Text m_Use;
            [SerializeField] Text m_Limit;
@@ -325,9 +348,7 @@
                m_SkillName.text = skillConfig.SkillName;
                var property = skillConfig.RequireProperty();
                var propertyConfig = PlayerPropertyConfig.Get(property);
                m_Reiki.text = propertyConfig.Name;
                m_Reiki.color = unlock ? UIHelper.GetPropertyColor(property) : UIHelper.s_Gray;
                m_ReikiBottom.SetSprite("XT_LGDT_" + property);
                var selectExpertSkill = 0;
                model.TryGetExpertSkill(ExpertSkillSelectWin.selectSkillId, out selectExpertSkill);