修改
This commit is contained in:
parent
e34b3df0aa
commit
d1c7f22f03
@ -91,7 +91,7 @@ end
|
|||||||
function HeroManager:getSkillRogueBg(skillId)
|
function HeroManager:getSkillRogueBg(skillId)
|
||||||
local cfg = ConfigManager:getConfig("skill_rogue")[skillId]
|
local cfg = ConfigManager:getConfig("skill_rogue")[skillId]
|
||||||
if cfg.type == GConst.BattleConst.UNLOCK_SKILL_ROGUE_TYPE then -- 解锁技能类型
|
if cfg.type == GConst.BattleConst.UNLOCK_SKILL_ROGUE_TYPE then -- 解锁技能类型
|
||||||
return "frame_skill"
|
return "frame_skill_" .. cfg.skill_position
|
||||||
end
|
end
|
||||||
return cfg and "frame_" .. cfg.qlt
|
return cfg and "frame_" .. cfg.qlt
|
||||||
end
|
end
|
||||||
|
|||||||
@ -58,14 +58,14 @@ function HeroDetailUI:_display()
|
|||||||
skillBg:addClickListener(function()
|
skillBg:addClickListener(function()
|
||||||
ModuleManager.TipsManager:showDescTips(ModuleManager.HeroManager:getSkillRogueDesc(skillId), skillIcon)
|
ModuleManager.TipsManager:showDescTips(ModuleManager.HeroManager:getSkillRogueDesc(skillId), skillIcon)
|
||||||
end)
|
end)
|
||||||
skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueBg(skillId))
|
|
||||||
skillIcon:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueIcon(skillId))
|
skillIcon:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueIcon(skillId))
|
||||||
skillBg:setImageGray(i > activeCount)
|
|
||||||
skillBg:setTouchEnable(true)
|
skillBg:setTouchEnable(true)
|
||||||
if i > activeCount then
|
if i > activeCount then
|
||||||
skillLv:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_1, skillLvs[i] or 0))
|
skillLv:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_1, skillLvs[i] or 0))
|
||||||
|
skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, "frame_0")
|
||||||
else
|
else
|
||||||
skillLv:setText(GConst.EMPTY_STRING)
|
skillLv:setText(GConst.EMPTY_STRING)
|
||||||
|
skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueBg(skillId))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user