| | |
| | |
|
| | | break;
|
| | | case 1:
|
| | | realmTitleText.gameObject.SetActive(true);
|
| | | realmImg.gameObject.SetActive(true);
|
| | | realmTitleText.text = Language.Get("RealmLimit1");
|
| | | RealmConfig realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(itemAttrData.itemConfig.RealmLimit);
|
| | | if (itemAttrData.itemConfig.RealmLimit <= 0)
|
| | | if(itemAttrData.isHavePutLimit)
|
| | | {
|
| | | realmImg.SetSprite("NoRealm");
|
| | | }
|
| | | else
|
| | | {
|
| | | if (realmConfig != null)
|
| | | realmTitleText.gameObject.SetActive(true);
|
| | | realmImg.gameObject.SetActive(true);
|
| | | realmTitleText.text = Language.Get("RealmLimit1");
|
| | | RealmConfig realmConfig = Config.Instance.Get<RealmConfig>(itemAttrData.itemConfig.RealmLimit);
|
| | | if (itemAttrData.itemConfig.RealmLimit <= 0)
|
| | | {
|
| | | realmImg.SetSprite(realmConfig.Img);
|
| | | realmImg.SetSprite("NoRealm");
|
| | | }
|
| | | else
|
| | | {
|
| | | if (realmConfig != null)
|
| | | {
|
| | | realmImg.SetSprite(realmConfig.Img);
|
| | | }
|
| | | }
|
| | |
|
| | | if (PlayerDatas.Instance.baseData.realmLevel >= itemAttrData.itemConfig.RealmLimit)
|
| | | {
|
| | | realmTitleText.color = conditionColor;
|
| | | }
|
| | | else
|
| | | {
|
| | | realmTitleText.color = UIHelper.GetUIColor(TextColType.Red);
|
| | | }
|
| | | }
|
| | |
|
| | | if (PlayerDatas.Instance.baseData.realmLevel >= itemAttrData.itemConfig.RealmLimit)
|
| | | {
|
| | | realmTitleText.color = conditionColor;
|
| | | }
|
| | | else
|
| | | {
|
| | | realmTitleText.color = UIHelper.GetUIColor(TextColType.Red);
|
| | | }
|
| | | |
| | | break;
|
| | | case 2:
|
| | | RefreshNeedPointUI();
|