This commit is contained in:
puxuan 2025-08-29 17:21:22 +08:00
parent ce9b1e0cbb
commit da72e275bb
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ end
function HeroManager:getHeroSmallFrame(heroId) function HeroManager:getHeroSmallFrame(heroId)
local cfg = ConfigManager:getConfig("hero")[heroId] local cfg = ConfigManager:getConfig("hero")[heroId]
return cfg and GConst.HERO_SMALL_FRAME_QLT[cfg.qlt] return cfg and GConst.FRAME_QLT[cfg.qlt]
end end
function HeroManager:getHeroMatchType(heroId) function HeroManager:getHeroMatchType(heroId)

View File

@ -11,7 +11,7 @@ function UnitResultReportCell:refresh(info, maxValue)
end end
local smallFrame = ModuleManager.HeroManager:getHeroSmallFrame(info.heroId) local smallFrame = ModuleManager.HeroManager:getHeroSmallFrame(info.heroId)
if smallFrame then if smallFrame then
uiMap["unit_result_report_cell.frame"]:setSprite(GConst.ATLAS_PATH.ICON_HERO, smallFrame) uiMap["unit_result_report_cell.frame"]:setSprite(GConst.ATLAS_PATH.ICON_ITEM, smallFrame)
end end
uiMap["unit_result_report_cell.slider"]:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_SLIDER).value = info.dmg / maxValue uiMap["unit_result_report_cell.slider"]:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_SLIDER).value = info.dmg / maxValue
uiMap["unit_result_report_cell.value"]:setText(GFunc.num2Str(info.dmg)) uiMap["unit_result_report_cell.value"]:setText(GFunc.num2Str(info.dmg))