| | |
| | | m_SelectConditions[index].text = StringUtility.Contact(seriesDisplay, requireDisplay);
|
| | | index++;
|
| | | }
|
| | | var requireProperty = skillConfig.RequireProperty();
|
| | | if (requireProperty != 0 && index < m_SelectConditions.Length)
|
| | | {
|
| | | m_SelectConditions[index].gameObject.SetActive(true);
|
| | | var requirePropertyValue = skillConfig.RequirePropertyValue();
|
| | | var propertyValue = UIHelper.GetPropertyMapPlayerData((AttrEnum)requireProperty);
|
| | | var requireDisplay = StringUtility.Contact(propertyValue, "/", requirePropertyValue);
|
| | | requireDisplay = UIHelper.GetTextColorByItemColor(propertyValue >= requirePropertyValue ?
|
| | | TextColType.Green : TextColType.Red, requireDisplay);
|
| | | var propertyConfig = Config.Instance.Get<PlayerPropertyConfig>(requireProperty);
|
| | | var propertyDisplay = Language.Get("TalentPropertyCondition", propertyConfig.Name);
|
| | | m_SelectConditions[index].text = StringUtility.Contact(propertyDisplay, requireDisplay);
|
| | | index++;
|
| | | }
|
| | | }
|
| | | if (skillConfig != null && index < m_SelectConditions.Length)
|
| | | {
|