fix bug
This commit is contained in:
parent
b84d255edd
commit
10ccba3f7d
@ -230,12 +230,12 @@ function HeroDetailUI:updateTop()
|
|||||||
if addHp <= 0 then
|
if addHp <= 0 then
|
||||||
hpStr = curHp
|
hpStr = curHp
|
||||||
else
|
else
|
||||||
hpStr = curHp .. "<color=#A2FF29>+" .. addHp .. "</color>"
|
hpStr = curHp .. "<color=#48E557>+" .. addHp .. "</color>"
|
||||||
end
|
end
|
||||||
if addAtk <= 0 then
|
if addAtk <= 0 then
|
||||||
atkStr = curAtk
|
atkStr = curAtk
|
||||||
else
|
else
|
||||||
atkStr = curAtk .. "<color=#A2FF29>+" .. addAtk .. "</color>"
|
atkStr = curAtk .. "<color=#48E557>+" .. addAtk .. "</color>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
self.hpTx:setText(hpStr)
|
self.hpTx:setText(hpStr)
|
||||||
|
|||||||
@ -56,6 +56,8 @@ function HeroSkillInfoUI:onLoadRootComplete()
|
|||||||
self.heroCells[i] = uiMap["hero_skill_info_ui.content.hero_node.hero_cell_" .. i]:addLuaComponent(HERO_CELL)
|
self.heroCells[i] = uiMap["hero_skill_info_ui.content.hero_node.hero_cell_" .. i]:addLuaComponent(HERO_CELL)
|
||||||
self.buffImgs[i] = uiMap["hero_skill_info_ui.content.buff_node.buff_img_" .. i]
|
self.buffImgs[i] = uiMap["hero_skill_info_ui.content.buff_node.buff_img_" .. i]
|
||||||
self.buffTxs[i] = uiMap["hero_skill_info_ui.content.buff_node.buff_tx_" .. i]
|
self.buffTxs[i] = uiMap["hero_skill_info_ui.content.buff_node.buff_tx_" .. i]
|
||||||
|
end
|
||||||
|
for i = 1, 3 do
|
||||||
self.skillDescTxs[i] = uiMap["hero_skill_info_ui.content.skill_desc_tx_" .. i]
|
self.skillDescTxs[i] = uiMap["hero_skill_info_ui.content.skill_desc_tx_" .. i]
|
||||||
self.skillVfxs[i] = uiMap["hero_skill_info_ui.content.skill_desc_tx_" .. i .. ".vfx_c1_ui_up_b03"]
|
self.skillVfxs[i] = uiMap["hero_skill_info_ui.content.skill_desc_tx_" .. i .. ".vfx_c1_ui_up_b03"]
|
||||||
self.skillVfxs[i]:setActive(false)
|
self.skillVfxs[i]:setActive(false)
|
||||||
@ -103,7 +105,7 @@ end
|
|||||||
function HeroSkillInfoUI:refreshSkillDesc()
|
function HeroSkillInfoUI:refreshSkillDesc()
|
||||||
local skillInfo, currIdx = self.heroEntity:getRogueSkillListByIdx(self.idx)
|
local skillInfo, currIdx = self.heroEntity:getRogueSkillListByIdx(self.idx)
|
||||||
local posY = -324
|
local posY = -324
|
||||||
for i = 1, 2 do
|
for i = 1, 3 do
|
||||||
local skillUnlcokStar = skillInfo[i + 1][1]
|
local skillUnlcokStar = skillInfo[i + 1][1]
|
||||||
local skillId = skillInfo[i + 1][2]
|
local skillId = skillInfo[i + 1][2]
|
||||||
local lvStr = I18N:getGlobalText(I18N.GlobalConst.STAR_UNLOCK, skillUnlcokStar)
|
local lvStr = I18N:getGlobalText(I18N.GlobalConst.STAR_UNLOCK, skillUnlcokStar)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user