Skip to content

Commit

Permalink
RightElement --> rightElement
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha authored Oct 3, 2023
1 parent 4d0469d commit 4c674ae
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions components/match2/wikis/rainbowsix/match_summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,17 @@ end
---@return R6Score
function Score:setFirstRoundScore(side, score, position)
local icon = ROUND_ICONS[side]
local leftElement, RightElement
local leftElement, rightElement
if position == POSITION_RIGHT then -- For right side, swap order of score and icon
leftElement, RightElement = score, icon
leftElement, rightElement = score, icon
else
leftElement, RightElement = icon, score
leftElement, rightElement = icon, score
end

local roundScore = mw.html.create('td')
roundScore :addClass('brkts-popup-body-match-sidewins')
:wikitext(leftElement)
:wikitext(RightElement)
:wikitext(rightElement)

self.top:node(roundScore)
return self
Expand All @@ -179,17 +179,17 @@ end
---@return R6Score
function Score:setSecondRoundScore(side, score, position)
local icon = ROUND_ICONS[side]
local leftElement, RightElement
local leftElement, rightElement
if position == POSITION_RIGHT then -- For right side, swap order of score and icon
leftElement, RightElement = score, icon
leftElement, rightElement = score, icon
else
leftElement, RightElement = icon, score
leftElement, rightElement = icon, score
end

local roundScore = mw.html.create('td')
roundScore :addClass('brkts-popup-body-match-sidewins')
:wikitext(leftElement)
:wikitext(RightElement)
:wikitext(rightElement)

self.bottom:node(roundScore)
return self
Expand All @@ -201,17 +201,17 @@ end
---@return R6Score
function Score:setFirstOvertimeRoundScore(side, score, position)
local icon = ROUND_ICONS['ot' .. side]
local leftElement, RightElement
local leftElement, rightElement
if position == POSITION_RIGHT then -- For right side, swap order of score and icon
leftElement, RightElement = score, icon
leftElement, rightElement = score, icon
else
leftElement, RightElement = icon, score
leftElement, rightElement = icon, score
end

local roundScore = mw.html.create('td')
roundScore :addClass('brkts-popup-body-match-sidewins-overtime')
:wikitext(leftElement)
:wikitext(RightElement)
:wikitext(rightElement)

self.top:node(roundScore)
return self
Expand All @@ -223,17 +223,17 @@ end
---@return R6Score
function Score:setSecondOvertimeRoundScore(side, score, position)
local icon = ROUND_ICONS['ot'..side]
local leftElement, RightElement
local leftElement, rightElement
if position == POSITION_RIGHT then -- For right side, swap order of score and icon
leftElement, RightElement = score, icon
leftElement, rightElement = score, icon
else
leftElement, RightElement = icon, score
leftElement, rightElement = icon, score
end

local roundScore = mw.html.create('td')
roundScore :addClass('brkts-popup-body-match-sidewins-overtime')
:wikitext(leftElement)
:wikitext(RightElement)
:wikitext(rightElement)

self.bottom:node(roundScore)
return self
Expand Down

0 comments on commit 4c674ae

Please sign in to comment.