| | |
| | | }
|
| | | private void OnClickStrengthBtn()
|
| | | {
|
| | |
|
| | | Dictionary<int, int> DicAb = m_GodBeastSlidingList.Absorption_Dic;
|
| | | List<int> List = new List<int>();
|
| | | foreach (var key in DicAb.Keys)
|
| | | {
|
| | | List.Add(key);
|
| | | }
|
| | | if (m_DoubleToggle.isOn)
|
| | | { |
| | | dogz_model.SendDogzEquipStrength(m_DogZItemModel.itemInfo.ItemPlace, List,1);
|
| | | }
|
| | | else
|
| | | {
|
| | | dogz_model.SendDogzEquipStrength(m_DogZItemModel.itemInfo.ItemPlace, List, 0);
|
| | | }
|
| | | }
|
| | | private void ChooseToModify(int locationMarker)
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | m_Slider.gameObject.SetActive(true); |
| | | m_Slider.gameObject.SetActive(true);
|
| | | if (DogZExp + ToExpTotal >= DogzEquipConfig.upExpTotal)
|
| | | {
|
| | | m_Slider.value = 1f;
|
| | |
| | | int[] AttTypeTo = ConfigParse.GetMultipleStr<int>(DogzEquipToConfig.attType);
|
| | | int[] AttValueTo = ConfigParse.GetMultipleStr<int>(DogzEquipToConfig.attValue);
|
| | | string strColor = string.Format(Language.Get("DogzGreenText"), ToExpTotal);
|
| | | m_ExpNum.text = DogZExp +strColor+ "/" + DogzEquipConfig.upExpTotal;
|
| | | m_ExpNum.text = DogZExp + strColor + "/" + DogzEquipConfig.upExpTotal;
|
| | | if (AttType.Length > 1)
|
| | | {
|
| | | m_TextAttributes1.gameObject.SetActive(true);
|
| | |
| | | string StrName2 = Config.Instance.Get<PlayerPropertyConfig>(AttType[1]).Name;
|
| | | m_TextAttributes1.text = StrName1 + ":" + AttValue[0];
|
| | | m_TextAttributes2.text = StrName2 + ":" + AttValue[1];
|
| | | m_TextAttributesAdd1.text = "+" +( AttValueTo[0] - AttValue[0]);
|
| | | m_TextAttributesAdd1.text = "+" + (AttValueTo[0] - AttValue[0]);
|
| | | m_TextAttributesAdd2.text = "+" + (AttValueTo[1] - AttValue[1]);
|
| | | }
|
| | | else
|
| | |
| | | m_TextAttributesAdd1.text = "+" + (AttValueTo[0] - AttValue[0]);
|
| | | }
|
| | | }
|
| | |
|
| | | if (ToExpTotal == 0)
|
| | | {
|
| | | m_StrengthenBtn.interactable = false;
|
| | | }
|
| | | else
|
| | | {
|
| | | m_StrengthenBtn.interactable = true;
|
| | | }
|
| | | }
|
| | |
|
| | | private int ToLv(int ToExpTotal)//获取等到达的熟练度等级
|