fix bug
This commit is contained in:
parent
ce9b1e0cbb
commit
da72e275bb
@ -94,7 +94,7 @@ end
|
||||
|
||||
function HeroManager:getHeroSmallFrame(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
|
||||
|
||||
function HeroManager:getHeroMatchType(heroId)
|
||||
|
||||
@ -11,7 +11,7 @@ function UnitResultReportCell:refresh(info, maxValue)
|
||||
end
|
||||
local smallFrame = ModuleManager.HeroManager:getHeroSmallFrame(info.heroId)
|
||||
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
|
||||
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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user