Skip to content

Commit

Permalink
Ranking Panel Hotfix. Initial mapBG removal for Storyboard Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
FukutoTojido committed Oct 18, 2021
1 parent c8915f3 commit e96af45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ html {
font-weight: 900 !important;
}

#mapBG {
/* #mapBG {
position: absolute;
width: 100%;
height: 100%;
Expand All @@ -59,7 +59,7 @@ html {
z-index: -2;
transition: ease-in-out 500ms;
clip-path: url('#myClip');
}
} */

#rankingPanelBG {
position: absolute;
Expand Down
1 change: 1 addition & 0 deletions deps/rankingPanel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
async function fetchData() {
// START OF API
console.log("Start API fetching")
apiGetSet = true;
let playerData, playerBest;
if (api !== '' && tempUsername !== '')
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ let apiGetSet = false;
let tempTimeCurrent;
let tempTimeFull;
let tempFirstObj;
let tempTimeMP3;

let tempStrainBase;
let smoothOffset = 2;
Expand Down Expand Up @@ -500,7 +501,8 @@ socket.onmessage = event => {
leaderboardSet = 0;
}
tempTimeCurrent = data.menu.bm.time.current;
tempTimeFull = data.menu.bm.time.mp3;
tempTimeFull = data.menu.bm.time.full;
tempTimeMP3 = data.menu.bm.time.mp3;
interfaceID = data.settings.showInterface;

if (tempTimeCurrent >= tempFirstObj + 5000 && tempTimeCurrent <= tempFirstObj + 11900 && gameState == 2) {
Expand All @@ -516,7 +518,7 @@ socket.onmessage = event => {
if (tempTimeCurrent >= tempTimeFull - 10000 && gameState === 2 && !apiGetSet)
fetchData();

if (tempTimeCurrent >= tempTimeFull - 2000 && gameState === 2)
if (tempTimeCurrent >= tempTimeMP3 - 2000 && gameState === 2)
rankingPanelBG.style.opacity = 1;

if (gameState === 7) {
Expand Down

0 comments on commit e96af45

Please sign in to comment.