皮肤属性增加生命加成显示
This commit is contained in:
parent
18d447de17
commit
8c88139a09
@ -92,14 +92,26 @@ function SkinInfoComp:refreshSelectSkin(selectId)
|
||||
-- 攻击
|
||||
table.insert(showAttrType, GConst.MATCH_ATTACK_NAME[self.heroEntity:getMatchType()])
|
||||
imgIcon:setSprite(GConst.ATLAS_PATH.COMMON, "common_dec_5")
|
||||
txTitle:setText("<color=#FCB501>"..I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_3).."</color>")
|
||||
txTitle:setText("<color=#FCB501>"..I18N:getGlobalText(I18N.GlobalConst.ATTR_ATK).."</color>")
|
||||
showValue = curAttr[index].num // DEFAULT_FACTOR
|
||||
elseif curAttr[index].type == GConst.MATCH_ATTACK_ADD_NAME[self.heroEntity:getMatchType()] then
|
||||
-- 攻击加成百分比
|
||||
table.insert(showAttrType, GConst.MATCH_ATTACK_ADD_NAME[self.heroEntity:getMatchType()])
|
||||
imgIcon:setSprite(GConst.ATLAS_PATH.COMMON, "common_dec_5")
|
||||
txTitle:setText("<color=#FCB501>"..I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_3).."</color>")
|
||||
txTitle:setText("<color=#FCB501>"..I18N:getGlobalText(I18N.GlobalConst.ATTR_ATK).."</color>")
|
||||
showValue = curAttr[index].num // PERCENT_FACTOR .. "%"
|
||||
elseif curAttr[index].type == GConst.MATCH_HP_NAME[self.heroEntity:getMatchType()] then
|
||||
-- 生命
|
||||
table.insert(showAttrType, GConst.MATCH_HP_NAME[self.heroEntity:getMatchType()])
|
||||
imgIcon:setSprite(GConst.ATLAS_PATH.COMMON, "common_dec_4")
|
||||
txTitle:setText("<color=#FB6895>"..I18N:getGlobalText(I18N.GlobalConst.ATTR_HP).."</color>")
|
||||
showValue = curAttr[index].num // DEFAULT_FACTOR
|
||||
elseif curAttr[index].type == GConst.MATCH_HP_ADD_NAME[self.heroEntity:getMatchType()] then
|
||||
-- 生命加成百分比
|
||||
table.insert(showAttrType, GConst.MATCH_HP_ADD_NAME[self.heroEntity:getMatchType()])
|
||||
imgIcon:setSprite(GConst.ATLAS_PATH.COMMON, "common_dec_4")
|
||||
txTitle:setText("<color=#FB6895>"..I18N:getGlobalText(I18N.GlobalConst.ATTR_HP).."</color>")
|
||||
showValue = (curAttr[index].num // PERCENT_FACTOR) .. "%"
|
||||
elseif curAttr[index].type == GConst.MATCH_NORMAL_HURT_NAME[self.heroEntity:getMatchType()] then
|
||||
-- 普攻增伤
|
||||
table.insert(showAttrType, GConst.MATCH_NORMAL_HURT_NAME[self.heroEntity:getMatchType()])
|
||||
@ -142,12 +154,6 @@ function SkinInfoComp:refreshSelectSkin(selectId)
|
||||
imgIcon:setSprite(GConst.ATLAS_PATH.COMMON, "common_dec_24")
|
||||
txTitle:setText("<color=#85FF82>"..I18N:getGlobalText(I18N.GlobalConst.ATTR_CURED).."</color>")
|
||||
showValue = curAttr[index].num // PERCENT_FACTOR .. "%"
|
||||
elseif curAttr[index].type == GConst.MATCH_HP_NAME[self.heroEntity:getMatchType()] then
|
||||
-- 生命
|
||||
table.insert(showAttrType, GConst.MATCH_HP_NAME[self.heroEntity:getMatchType()])
|
||||
imgIcon:setSprite(GConst.ATLAS_PATH.COMMON, "common_dec_4")
|
||||
txTitle:setText("<color=#FB6895>"..I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_2).."</color>")
|
||||
showValue = curAttr[index].num // DEFAULT_FACTOR
|
||||
else
|
||||
obj:setVisible(false)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user