| | |
| | | m_Reiki.text = propertyConfig.Name;
|
| | | m_Reiki.color = UIHelper.GetPropertyColor(property);
|
| | |
|
| | | var propertyValueLabel = UIHelper.AppendColor(TextColType.Green, UIHelper.GetPropertyValue((PropertyType)property).ToString());
|
| | | m_ReikiPoint.text = string.Format("我的{0}灵根:{1}",
|
| | | propertyConfig.Name, UIHelper.GetPropertyValue((PropertyType)property));
|
| | | propertyConfig.Name, propertyValueLabel);
|
| | |
|
| | | datas.Clear();
|
| | | for (int i = 1; i <= skillConfig.SkillMaxLV; i++)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (!animationStep)
|
| | | {
|
| | | m_LayoutElement.preferredHeight = datas.Count > 2 ? 440 : 302;
|
| | | }
|
| | |
|
| | | m_CyclicScroll.enabled = true;
|
| | |
|
| | | m_CyclicScroll.Dispose();
|
| | | m_CyclicScroll.Init(datas);
|
| | |
|
| | | if (!animationStep)
|
| | | {
|
| | | m_LayoutElement.preferredHeight = datas.Count > 2 ? 440 : 302;
|
| | | m_CyclicScroll.ReArrange();
|
| | | }
|
| | |
|
| | | StartCoroutine(Co_Arrange(animationStep, datas.Count > 2 ? 440 : 302));
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | void DisplayButtonState()
|
| | | {
|
| | | var selectExpertSkill = 0;
|
| | | model.TryGetExpertSkill(selectSkillId, out selectExpertSkill);
|
| | |
|
| | | var used = selectExpertSkill == selectExpert;
|
| | |
|
| | | TreasurePotential expert;
|
| | | if (model.TryGetPotential(selectExpert, out expert))
|
| | | {
|
| | | var satisfyActive = model.SatisfyActiveExpert(selectExpert);
|
| | | var activeLevel = 0;
|
| | | model.TryGetExpertActiveLevel(selectExpert, out activeLevel);
|
| | | m_Select.gameObject.SetActive(activeLevel > 0 && !satisfyActive);
|
| | | m_Select.gameObject.SetActive(activeLevel > 0 && !satisfyActive && !used);
|
| | | m_Active.gameObject.SetActive(satisfyActive);
|
| | | }
|
| | | }
|