From 5533263c0a1b4706b1bbf0a58148e293b35d746f Mon Sep 17 00:00:00 2001 From: Robbie <42142350+robbai@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:18:43 +0000 Subject: [PATCH] feat(infobox): Show participant count in individual tournament infoboxes on RL (#5135) RL: Show participant count in individual tournament infoboxes --- .../infobox/wikis/rocketleague/infobox_league_custom.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/infobox/wikis/rocketleague/infobox_league_custom.lua b/components/infobox/wikis/rocketleague/infobox_league_custom.lua index 2c360f772a2..f1a7c3e0074 100644 --- a/components/infobox/wikis/rocketleague/infobox_league_custom.lua +++ b/components/infobox/wikis/rocketleague/infobox_league_custom.lua @@ -81,6 +81,12 @@ function CustomInjector:parse(id, widgets) name = 'Number of teams', content = {args.team_number} }) + elseif not String.isEmpty(args.player_number) then + table.insert(widgets, Title{children = 'Players'}) + table.insert(widgets, Cell{ + name = 'Number of players', + content = {args.player_number} + }) end end return widgets