| | |
| | | [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;
|
| | |
| | |
|
| | | 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}",
|
| | |
| | | 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();
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | 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();
|
| | |
| | | [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;
|
| | |
| | | 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);
|