| | |
| | | [SerializeField] Text m_Progress;
|
| | | [SerializeField] Text m_UnlockCondition;
|
| | | [SerializeField] PropertyBehaviour[] m_PreviewPropertys;
|
| | | [SerializeField] RectTransform m_ContainerCondition;
|
| | | [SerializeField] Text m_GodWeaponCondition;
|
| | |
|
| | | [SerializeField] RectTransform m_ContainerSkill;
|
| | | [SerializeField] GodWeaponSkillBehaviour[] m_Skills;
|
| | |
| | | m_HammerLabel.text = Language.Get("L1130");
|
| | | DisplayPreviewProperty();
|
| | | DisplayProgress();
|
| | | DisplayCondition();
|
| | | }
|
| | | else
|
| | | {
|
| | | m_ContainerProgress.gameObject.SetActive(false);
|
| | | m_ContainerCondition.gameObject.SetActive(false);
|
| | | m_CostItemTitle.text = Language.Get("L1052");
|
| | | m_PropertyTitle.text = Language.Get("L1051");
|
| | | m_HammerLabel.text = Language.Get("L1131");
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void DisplayCondition()
|
| | | {
|
| | | bool requireCondition = !model.IsGodWeaponUnlock(model.selectType)
|
| | | && model.ContainsCondition(model.selectType);
|
| | | m_ContainerCondition.gameObject.SetActive(requireCondition);
|
| | | if (requireCondition)
|
| | | {
|
| | | List<GodWeaponCondition> list;
|
| | | if (model.TryGetConditions(model.selectType, out list))
|
| | | {
|
| | | var index = 0;
|
| | | for (int i = 0; i < list.Count; i++)
|
| | | {
|
| | | var godWeaponInfo = model.GetGodWeaponInfo(list[i].type);
|
| | | if (godWeaponInfo != null && godWeaponInfo.level >= list[i].level)
|
| | | {
|
| | | if (i + 1 < list.Count)
|
| | | {
|
| | | index = i + 1;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | break;
|
| | | }
|
| | | }
|
| | | if (index < list.Count)
|
| | | {
|
| | | var config = GodWeaponConfig.GetConfig(list[index].type, 1);
|
| | | m_GodWeaponCondition.text = StringUtility.Contact(config.Name,
|
| | | Language.Get("GodWeaponCondition", list[index].level));
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void DisplayExp(bool immediatly)
|
| | | {
|
| | | var godWeaponInfo = model.GetGodWeaponInfo(model.selectType);
|