| | |
| | | if (AchievementGoto.achievementType == AchievementGoto.RuneLevelUp)
|
| | | {
|
| | | int _hole = 0;
|
| | | if(model.CanLevelUpRune(out _hole))
|
| | | if (model.CanLevelUpRune(out _hole))
|
| | | {
|
| | | OnRuneHoleClick(_hole);
|
| | | var _effect = AchievementGuideEffectPool.Require(1);
|
| | |
| | | presentRuneImg.SetSprite(_itemCfg.IconKey);
|
| | | presentRuneAttrTxt.text = model.GetRuneAttrStr(data.id, data.lv);
|
| | | presentRuneNameTxt.text = StringUtility.Contact(_itemCfg.ItemName, Language.Get("Z1024", data.lv));
|
| | | presentRuneNameTxt.color = UIHelper.GetUIColor(_itemCfg.ItemColor);
|
| | | presentRuneNameTxt.color = UIHelper.GetUIColor(_itemCfg.ItemColor, true);
|
| | |
|
| | | var _propertyCfg = Config.Instance.Get<PlayerPropertyConfig>(_runeCfg.AttrType[0]);
|
| | | var _propertyValue = model.GetRuneAttrVal(data.id, data.lv, _runeCfg.AttrType[0]);
|
| | | runeLevelUpAttr1.text = StringUtility.Contact(_propertyCfg.Name, " ", "+", UIHelper.ReplacePercentage(_propertyValue, _propertyCfg.ISPercentage),
|
| | | runeLevelUpAttr1.text = StringUtility.Contact(_propertyCfg.Name, "+", UIHelper.ReplacePercentage(_propertyValue, _propertyCfg.ISPercentage,
|
| | | UIHelper.GetPropertyDecimalCount(_propertyCfg.ID)),
|
| | | _propertyCfg.ISPercentage == 1 ? "%" : string.Empty);
|
| | |
|
| | | bool _isRuneMaxLv = data.lv >= model.GetRuneMaxLevelByItem(data.id);
|
| | |
| | | if (!_isRuneMaxLv)
|
| | | {
|
| | | _propertyValue = model.GetRuneAttrVal(data.id, data.lv + 1, _runeCfg.AttrType[0]);
|
| | | runeLevelUpAttrNum1.text = StringUtility.Contact("+", UIHelper.ReplacePercentage(_propertyValue, _propertyCfg.ISPercentage),
|
| | | runeLevelUpAttrNum1.text = StringUtility.Contact("+", UIHelper.ReplacePercentage(_propertyValue, _propertyCfg.ISPercentage,
|
| | | UIHelper.GetPropertyDecimalCount(_propertyCfg.ID)),
|
| | | _propertyCfg.ISPercentage == 1 ? "%" : string.Empty);
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | _propertyCfg = Config.Instance.Get<PlayerPropertyConfig>(_runeCfg.AttrType[1]);
|
| | | _propertyValue = model.GetRuneAttrVal(data.id, data.lv, _runeCfg.AttrType[1]);
|
| | | runeLevelUpAttr2.text = StringUtility.Contact(_propertyCfg.Name, " ", "+", UIHelper.ReplacePercentage(_propertyValue, _propertyCfg.ISPercentage),
|
| | | runeLevelUpAttr2.text = StringUtility.Contact(_propertyCfg.Name, "+", UIHelper.ReplacePercentage(_propertyValue, _propertyCfg.ISPercentage,
|
| | | UIHelper.GetPropertyDecimalCount(_propertyCfg.ID)),
|
| | | _propertyCfg.ISPercentage == 1 ? "%" : string.Empty);
|
| | | runeLevelUpAttrNum2.gameObject.SetActive(!_isRuneMaxLv);
|
| | | if (!_isRuneMaxLv)
|
| | | {
|
| | | _propertyValue = model.GetRuneAttrVal(data.id, data.lv + 1, _runeCfg.AttrType[1]);
|
| | | runeLevelUpAttrNum2.text = StringUtility.Contact("+", UIHelper.ReplacePercentage(_propertyValue, _propertyCfg.ISPercentage),
|
| | | runeLevelUpAttrNum2.text = StringUtility.Contact("+", UIHelper.ReplacePercentage(_propertyValue, _propertyCfg.ISPercentage,
|
| | | UIHelper.GetPropertyDecimalCount(_propertyCfg.ID)),
|
| | | _propertyCfg.ISPercentage == 1 ? "%" : string.Empty);
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | if (_tower == 0)
|
| | | {
|
| | | m_RuneUnlockTip.text = Language.Get("L1060",model.doublePropRuneInlayDict.Values.Last());
|
| | | m_RuneUnlockTip.text = Language.Get("L1060", model.doublePropRuneInlayDict.Values.Last());
|
| | | }
|
| | | else
|
| | | {
|