From 0957ca66c1dec97770f9cf1f7e54a873736cbb86 Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Fri, 29 Aug 2025 14:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E8=83=BD=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/hero/hero_manager.lua | 8 ++++++++ lua/app/ui/hero/hero_skill_info_ui.lua | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lua/app/module/hero/hero_manager.lua b/lua/app/module/hero/hero_manager.lua index 24dd5fae..a19a4c1f 100644 --- a/lua/app/module/hero/hero_manager.lua +++ b/lua/app/module/hero/hero_manager.lua @@ -143,6 +143,14 @@ function HeroManager:getSkillRogueDesc(skillId, value) return I18N:getText("skill_rogue", skillId, "desc", str) end +function HeroManager:getSkillRogueDescEntry(skillId, entry) + local cfg = ConfigManager:getConfig("skill_rogue")[skillId] + if not cfg then + return GConst.EMPTY_STRING + end + return I18N:getText("skill_rogue", skillId, "entry_" .. entry) +end + function HeroManager:showValueRogue(skillId) local cfg = ConfigManager:getConfig("skill_rogue")[skillId] if cfg and cfg.toast_mark then diff --git a/lua/app/ui/hero/hero_skill_info_ui.lua b/lua/app/ui/hero/hero_skill_info_ui.lua index 41aa20b2..23f48774 100644 --- a/lua/app/ui/hero/hero_skill_info_ui.lua +++ b/lua/app/ui/hero/hero_skill_info_ui.lua @@ -104,7 +104,12 @@ function HeroSkillInfoUI:refreshSkillDesc() local skillUnlcokLv = skillInfo[i][1] local skillId = skillInfo[i][2] local lvStr = I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_14, skillUnlcokLv) - local skillStr = ModuleManager.HeroManager:getSkillRogueDesc(skillId) + local skillStr + if i == 1 then + skillStr = ModuleManager.HeroManager:getSkillRogueDesc(skillId) + else + skillStr = ModuleManager.HeroManager:getSkillRogueDescEntry(skillId, i - 1) + end if currIdx >= i then self.skillDescTxs[i]:setText("" .. lvStr .. " " .. skillStr .. "") else