diff --git a/components/squad/wikis/dota2/squad_custom.lua b/components/squad/wikis/dota2/squad_custom.lua index d870e547d5f..acdfecb29c9 100644 --- a/components/squad/wikis/dota2/squad_custom.lua +++ b/components/squad/wikis/dota2/squad_custom.lua @@ -59,6 +59,22 @@ function CustomSquad.run(frame) } end +---@param playerList table[] +---@param squadStatus integer +---@param squadType SquadType +---@param customTitle string? +---@return Widget +function CustomSquad.runAuto(playerList, squadStatus, squadType, customTitle) + return SquadUtils.defaultRunAuto( + playerList, + squadStatus, + squadType, + Squad, + SquadUtils.defaultRow(SquadRow), + customTitle + ) +end + function CustomSquad._playerRow(person, squadStatus, squadType) local squadPerson = SquadUtils.readSquadPersonArgs(Table.merge(person, {status = squadStatus, type = squadType})) squadPerson.extradata.activeteam = person.activeteam