This commit is contained in:
puxuan 2025-10-13 14:52:42 +08:00
parent b84d255edd
commit 10ccba3f7d
2 changed files with 5 additions and 3 deletions

View File

@ -230,12 +230,12 @@ function HeroDetailUI:updateTop()
if addHp <= 0 then
hpStr = curHp
else
hpStr = curHp .. "<color=#A2FF29>+" .. addHp .. "</color>"
hpStr = curHp .. "<color=#48E557>+" .. addHp .. "</color>"
end
if addAtk <= 0 then
atkStr = curAtk
else
atkStr = curAtk .. "<color=#A2FF29>+" .. addAtk .. "</color>"
atkStr = curAtk .. "<color=#48E557>+" .. addAtk .. "</color>"
end
end
self.hpTx:setText(hpStr)

View File

@ -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.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]
end
for i = 1, 3 do
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]:setActive(false)
@ -103,7 +105,7 @@ end
function HeroSkillInfoUI:refreshSkillDesc()
local skillInfo, currIdx = self.heroEntity:getRogueSkillListByIdx(self.idx)
local posY = -324
for i = 1, 2 do
for i = 1, 3 do
local skillUnlcokStar = skillInfo[i + 1][1]
local skillId = skillInfo[i + 1][2]
local lvStr = I18N:getGlobalText(I18N.GlobalConst.STAR_UNLOCK, skillUnlcokStar)