Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lua/wikis/commons/OpponentDisplay.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:OpponentDisplay
Expand Down Expand Up @@ -97,7 +97,6 @@
---@field showFlag boolean?
---@field showLink boolean?
---@field showPlayerTeam boolean?
---@field playerClass string?
---@field teamStyle teamStyle?
---@field dq boolean?
---@field note string|number|nil
Expand Down
5 changes: 3 additions & 2 deletions lua/wikis/commons/Widget/Match/Bracket/Opponent.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:Widget/Match/Bracket/Opponent
Expand All @@ -7,7 +7,8 @@

local Lua = require('Module:Lua')

local OpponentDisplay = Lua.import('Module:OpponentDisplay')
local Opponent = Lua.import('Module:Opponent/Custom')
local OpponentDisplay = Lua.import('Module:OpponentDisplay/Custom')

local Component = Lua.import('Module:Widget/Component')

Expand All @@ -24,7 +25,7 @@
opponent = opponent,
overflow = 'ellipsis',
showLink = false,
showTbd = props.showTbd,
showTbd = opponent.type == Opponent.literal or props.showTbd,
Comment thread
Rathoz marked this conversation as resolved.
teamStyle = props.forceShortName and 'short' or 'dynamic',
}
end
Expand Down
32 changes: 0 additions & 32 deletions lua/wikis/commons/Widget/Match/Bracket/Opponent/Starcraft.lua

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:Widget/Match/Bracket/OpponentEntry/Starcraft
Expand All @@ -11,7 +11,6 @@

local Component = Lua.import('Module:Widget/Component')
local BracketOpponentEntry = Lua.import('Module:Widget/Match/Bracket/OpponentEntry')
local StarcraftBracketOpponent = Lua.import('Module:Widget/Match/Bracket/Opponent/Starcraft')

---@class StarcraftBracketOpponentEntryProps: BracketOpponentEntryProps
---@field opponent StarcraftStandardOpponent
Expand All @@ -20,7 +19,6 @@
---@return VNode
local function StarcraftBracketOpponentEntry(props)
local opponent = props.opponent
props.BracketOpponent = StarcraftBracketOpponent
props.showFactionBackground = opponent.type == Opponent.solo
or opponent.type == Opponent.duo and opponent.isArchon
return BracketOpponentEntry(props)
Expand Down
4 changes: 0 additions & 4 deletions lua/wikis/commons/Widget/PlayerDisplay/Block.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:Widget/PlayerDisplay/Block
Expand All @@ -18,7 +18,6 @@
local WidgetUtil = Lua.import('Module:Widget/Util')

---@class BlockPlayerDisplayProps: InlinePlayerDisplayProps
---@field playerClass string|string[]?
---@field overflow OverflowModes?
---@field showPlayerTeam boolean?
---@field note Renderable|Renderable[]?
Expand All @@ -28,12 +27,9 @@
local function BlockPlayer(props)
local player = props.player
local factionDisplay = PlayerDisplayComponents.faction(props)
local playerClasses = type(props.playerClass) == 'string' and
{props.playerClass} or props.playerClass --[[ @as string[]? ]]
local useDefault = Logic.nilOr(Logic.readBoolOrNil(props.showTbd), true) or not Opponent.playerIsTbd(player)
local showPlayerTeam = props.showPlayerTeam
return BlockWrapper{
classes = playerClasses,
flip = props.flip,
showPlayerTeam = showPlayerTeam,
children = WidgetUtil.collect(
Expand Down
3 changes: 0 additions & 3 deletions lua/wikis/commons/Widget/PlayerDisplay/Block/Character.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:Widget/PlayerDisplay/Block/Character
Expand Down Expand Up @@ -45,12 +45,9 @@
local function BlockCharacterPlayer(props)
local player = props.player
local charactersDisplay = getCharacters(player)
local playerClasses = type(props.playerClass) == 'string' and
{props.playerClass} or props.playerClass --[[ @as string[]? ]]
local useDefault = Logic.nilOr(Logic.readBoolOrNil(props.showTbd), true) or not Opponent.playerIsTbd(player)
local showPlayerTeam = props.showPlayerTeam
local block = BlockWrapper{
classes = playerClasses,
flip = props.flip,
showPlayerTeam = showPlayerTeam,
children = WidgetUtil.collect(
Expand Down
Loading