Skip to content

Commit

Permalink
fix valorant static file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Himyu committed Jul 14, 2022
1 parent 7f0e3d8 commit 439bfa6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions frontend/gfx/loading/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function initGfx (data, static) {
}

const agentImgUrl = (CharacterID) => {
return `/serve/valorant-static/agent-drawing/${CharacterID}.png`
return `/serve/module-valorant-static/agent-drawing/${CharacterID}.png`
}

const template = document.querySelector('#agent-template')
Expand All @@ -41,10 +41,10 @@ function initMap (map, static) {
return m.mapUrl === map
})

mapDiv.style.backgroundImage = `url(/serve/valorant-static/map-splash/${currentMap.uuid}.png)`
mapDiv.style.backgroundImage = `url(/serve/module-valorant-static/map-splash/${currentMap.uuid}.png)`
mapName.innerHTML = currentMap.displayName

mapIcon.src = `/serve/valorant-static/map-rcv/${currentMap.uuid}.png`
mapIcon.src = `/serve/module-valorant-static/map-rcv/${currentMap.uuid}.png`
}

function displayData (state) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/gfx/loading/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
height: 100%;

h3 {
color: #fbfb42;
color: var(--accent-color);
font-size: 17pt;
line-height: 1;
font-family: 'D-DIN';
Expand Down
4 changes: 2 additions & 2 deletions frontend/gfx/pregame/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function initGfx (data, static) {
}

const agentImgUrl = (CharacterID) => {
return `/serve/valorant-static/agent-drawing/${CharacterID}.png`
return `/serve/module-valorant-static/agent-drawing/${CharacterID}.png`
}

const template = document.querySelector('#agent-template')
Expand Down Expand Up @@ -52,7 +52,7 @@ function initMap (map, static) {
uuid: currentMap.uuid
}

mapDiv.style.backgroundImage = `url(/serve/valorant-static/map-splash/${mapData.uuid}.png)`
mapDiv.style.backgroundImage = `url(/serve/module-valorant-static/map-splash/${mapData.uuid}.png)`
mapName.innerHTML = mapData.displayName
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/gfx/pregame/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}

h3 {
color: #fbfb42;
color: var(--accent-color);
font-size: 24pt;
line-height: 1;
margin-bottom: 0;
Expand Down

0 comments on commit 439bfa6

Please sign in to comment.