From 0fefcc60133ade8e590daa4edb7fc18b771f16a6 Mon Sep 17 00:00:00 2001 From: Rikard Blixt Date: Tue, 10 Dec 2024 13:10:43 +0100 Subject: [PATCH] hide/show kills col --- components/match2/commons/match_group_input_util.lua | 1 + components/match2/commons/match_summary_ffa.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/match2/commons/match_group_input_util.lua b/components/match2/commons/match_group_input_util.lua index 6f522bb2f3..2b379dbcde 100644 --- a/components/match2/commons/match_group_input_util.lua +++ b/components/match2/commons/match_group_input_util.lua @@ -1491,6 +1491,7 @@ function MatchGroupInputUtil.parseSettings(match, opponentCount) status = statusSettings, settings = { showGameDetails = Logic.nilOr(Logic.readBoolOrNil(match.showgamedetails), true), + showKills = Logic.nilOr(Logic.readBoolOrNil(match.showkills), true), matchPointThreshold = tonumber(match.matchpoint), } } diff --git a/components/match2/commons/match_summary_ffa.lua b/components/match2/commons/match_summary_ffa.lua index aeeb7f7a5c..e470c0b045 100644 --- a/components/match2/commons/match_summary_ffa.lua +++ b/components/match2/commons/match_summary_ffa.lua @@ -192,7 +192,7 @@ local GAME_OVERVIEW_COLUMNS = { }, { show = function(match) - return match.extradata.settings.showGameDetails + return match.extradata.settings.showGameDetails and match.extradata.settings.showKills end, class = 'panel-table__cell__game-kills', icon = 'kills',