Skip to content

Commit

Permalink
Merge branch 'main' into tournament-info
Browse files Browse the repository at this point in the history
  • Loading branch information
Himyu authored Oct 1, 2023
2 parents 6691187 + e1ff1fa commit d0837ad
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: 'Release'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup NodeJS
uses: actions/setup-node@v3
Expand Down
11 changes: 8 additions & 3 deletions frontend/gfx/ingame.css
Original file line number Diff line number Diff line change
Expand Up @@ -798,14 +798,19 @@ body {
.sb-logo {
width: 50px;
aspect-ratio: 1;
visibility: hidden;
object-fit: contain;
display: none;
}

.sb-blue .sb-logo {
margin-right: 25px;
margin-top: -5px;
margin-left: 15px;
margin-right: 20px;
}
.sb-red .sb-logo {
margin-left: 25px;
margin-left: 20px;
margin-top: -5px;
margin-right: 15px;
}

.sb-score {
Expand Down
4 changes: 2 additions & 2 deletions frontend/gfx/ingame.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h2 class="timer">3:00</h2>
<div class="sb-team sb-blue">
<div class="sb-team-info">
<div class="sb-score sb-score-blue"></div>
<img src="/pages/op-module-teams/img/" alt="" class="sb-logo">
<img src="" alt="" class="sb-logo">
<h3 class="sb-tag">Tag</h3>
<h4 class="sb-standing">0-0</h4>
</div>
Expand Down Expand Up @@ -76,7 +76,7 @@ <h2 class="sb-time">00:00</h2>
<div class="sb-team sb-red">
<div class="sb-team-info">
<div class="sb-score sb-score-red"></div>
<img src="/pages/op-module-teams/img/" alt="" class="sb-logo">
<img src="" alt="" class="sb-logo">
<h3 class="sb-tag">Tag</h3>
<h4 class="sb-standing">0-0</h4>
</div>
Expand Down
20 changes: 11 additions & 9 deletions frontend/gfx/ingame.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,21 +440,23 @@ const roundOfMap = {
function changeColors(e) {
sbBlueTag.innerText = e.teams.blueTeam?.tag || 'Tag'
sbRedTag.innerText = e.teams.redTeam?.tag || 'Tag'
sbBlueLogo.style.visibility = `hidden`
sbRedLogo.style.visibility = `hidden`
sbBlueLogo.style.display = `none`
sbRedLogo.style.display = `none`
sbBlueStanding.innerText = e.teams.blueTeam?.standing || ''
sbRedStanding.innerText = e.teams.redTeam?.standing || ''
if(e.teams.blueTeam?.logo) {

roundOfSpan.textContent = e.roundOf <= 8 ? roundOfMap[e.roundOf] : `Round of ${e.roundOf}`
nameSpan.textContent = e.tournamentName
resizeText(tournamentDiv)

if(e.teams.blueTeam?.logo !== undefined && e.teams.blueTeam?.logo !== '') {
sbBlueLogo.src = `/pages/op-module-teams/img/${e.teams.blueTeam.logo}`
sbBlueLogo.style.visibility = 'visible'
sbBlueLogo.style.display = 'block'
}
if(e.teams.redTeam?.logo) {
if(e.teams.redTeam?.logo !== undefined && e.teams.redTeam?.logo !== '') {
sbRedLogo.src = `/pages/op-module-teams/img/${e.teams.redTeam.logo}`
sbRedLogo.style.visibility = 'visible'
sbRedLogo.style.display = 'block'
}
roundOfSpan.textContent = e.roundOf <= 8 ? roundOfMap[e.roundOf] : `Round of ${e.roundOf}`
nameSpan.textContent = e.tournamentName
resizeText(tournamentDiv)

sbBlueScore.innerHTML = ''
sbRedScore.innerHTML = ''
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "module-league-in-game",
"version": "5.3.0",
"version": "5.4.0",
"description": "Module to display in-game information",
"author": "RCVolus",
"license": "MIT",
Expand Down

0 comments on commit d0837ad

Please sign in to comment.