| | |
| | | DebugEx.LogError("没有索引到对应的强化表数据");
|
| | | return;
|
| | | }
|
| | | NeedMoney.text = SetMoneyText(itemPlus);
|
| | | NeedMoney.gameObject.SetActive(false);
|
| | | m_TextNumber.text = "+" + equipLv;
|
| | | int equipType = strengthModel.GetEquipStrengthType(equipPlace);
|
| | |
|
| | |
| | |
|
| | | }
|
| | | }
|
| | | private string SetMoneyText(ItemPlusConfig itemPlusConfig)
|
| | | {
|
| | | string strMoneyText = string.Empty;
|
| | | ulong money = UIHelper.GetMoneyCnt(3);
|
| | | ulong needMoney = (ulong)itemPlusConfig.costCount;
|
| | | string MoneyStr = ItemLogicUtility.Instance.OnChangeCoinsUnit(UIHelper.GetMoneyCnt(3));
|
| | | string NeedMoneyStr = ItemLogicUtility.Instance.OnChangeCoinsUnit(needMoney);
|
| | | if (money >= needMoney) |
| | | {
|
| | | strMoneyText = Language.Get("ZBQH_03", NeedMoneyStr, MoneyStr); |
| | | } |
| | | else |
| | | { |
| | | strMoneyText = Language.Get("ZBQH_04", NeedMoneyStr, MoneyStr); |
| | | }
|
| | | return strMoneyText;
|
| | | } |
| | | } |
| | | |
| | | } |