界面调整

This commit is contained in:
xiekaidong 2023-04-24 14:21:10 +08:00
parent 43ef1a5a8d
commit 63f4851117
2 changed files with 3 additions and 3 deletions

View File

@ -100,9 +100,9 @@ function HeroManager:getSkillRogueBattleBg(skillId)
return cfg and "battle_board_" .. cfg.qlt
end
function HeroManager:getSkillRogueBg(skillId)
function HeroManager:getSkillRogueBg(skillId, onlyQlt)
local cfg = ConfigManager:getConfig("skill_rogue")[skillId]
if cfg.skill_position then -- 解锁技能类型
if cfg.skill_position and not onlyQlt then -- 解锁技能类型
return "frame_skill_0"
end
return cfg and "frame_" .. cfg.qlt

View File

@ -61,7 +61,7 @@ function HeroDetailUI:_display()
skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, "frame_0")
else
skillLv:setText(GConst.EMPTY_STRING)
skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueBg(skillId))
skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueBg(skillId, true))
end
end
end