技能描述
This commit is contained in:
parent
6e938240d7
commit
0957ca66c1
@ -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
|
||||
|
||||
@ -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("<color=#FFFFFF>" .. lvStr .. "</color><color=#FFA44B> " .. skillStr .. "</color>")
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user