伤害统计
This commit is contained in:
parent
902db9d49b
commit
594d5ac6c6
@ -371,6 +371,16 @@ GConst.HERO_FRAME_QLT = {
|
|||||||
[7] = "frame_7",
|
[7] = "frame_7",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GConst.HERO_SMALL_FRAME_QLT = {
|
||||||
|
[1] = "frame_small_1",
|
||||||
|
[2] = "frame_small_2",
|
||||||
|
[3] = "frame_small_3",
|
||||||
|
[4] = "frame_small_4",
|
||||||
|
[5] = "frame_small_5",
|
||||||
|
[6] = "frame_small_6",
|
||||||
|
[7] = "frame_small_7",
|
||||||
|
}
|
||||||
|
|
||||||
GConst.HERO_FRAME_GRAY_QLT = {
|
GConst.HERO_FRAME_GRAY_QLT = {
|
||||||
[1] = "frame_gray_1",
|
[1] = "frame_gray_1",
|
||||||
[2] = "frame_gray_2",
|
[2] = "frame_gray_2",
|
||||||
|
|||||||
@ -40,6 +40,11 @@ function HeroManager:getHeroIcon(heroId)
|
|||||||
return cfg and tostring(cfg.icon)
|
return cfg and tostring(cfg.icon)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function HeroManager:getHeroSmallFrame(heroId)
|
||||||
|
local cfg = ConfigManager:getConfig("hero")[heroId]
|
||||||
|
return cfg and GConst.HERO_SMALL_FRAME_QLT[cfg.qlt]
|
||||||
|
end
|
||||||
|
|
||||||
function HeroManager:getMatchTypeIcon(matchType)
|
function HeroManager:getMatchTypeIcon(matchType)
|
||||||
return GConst.HeroConst.MATCH_ICON_NAME[matchType]
|
return GConst.HeroConst.MATCH_ICON_NAME[matchType]
|
||||||
end
|
end
|
||||||
|
|||||||
@ -6,7 +6,10 @@ function UnitResultReportCell:refresh(info, maxValue)
|
|||||||
if icon then
|
if icon then
|
||||||
uiMap["unit_result_report_cell.icon"]:setSprite(GConst.ATLAS_PATH.ICON_HERO, icon)
|
uiMap["unit_result_report_cell.icon"]:setSprite(GConst.ATLAS_PATH.ICON_HERO, icon)
|
||||||
end
|
end
|
||||||
|
local smallFrame = ModuleManager.HeroManager:getHeroSmallFrame(info.heroId)
|
||||||
|
if smallFrame then
|
||||||
|
uiMap["unit_result_report_cell.frame"]:setSprite(GConst.ATLAS_PATH.ICON_HERO, smallFrame)
|
||||||
|
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))
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user