|
441 | 441 | const queueTimerDisplay = document.getElementById("queueTimerDisplay"); |
442 | 442 | const regionSelectors = document.getElementById("regionCheckboxes"); |
443 | 443 | const matchPopupOverlay = document.getElementById("matchPopupOverlay"); |
444 | | - const closeButton = document.getElementById("closeMatch"); |
445 | 444 | const countdownTimer = document.getElementById("countDownTimer"); |
446 | 445 | const foundRegion = document.getElementById("foundRegion"); |
447 | 446 | const mapSelectorButton = document.getElementById("mapSelectorButton"); |
|
665 | 664 | queueInterval = setInterval(updateQueueTimer, 1000); |
666 | 665 | queueButton.disabled = false; |
667 | 666 | }; |
668 | | - window.matchFound = matchFound; |
669 | 667 | queueConnection.onmessage = (event) => { |
670 | 668 | const data = JSON.parse(event.data); |
671 | 669 | switch (data.type) { |
|
733 | 731 |
|
734 | 732 | if (remaining <= 0) window.close(); |
735 | 733 | }, 1000); |
736 | | - } |
737 | 734 |
|
738 | | - function closeMatchPopup() { |
739 | | - clearInterval(countdownInterval); |
740 | | - stopNotificationSound(); |
741 | | - matchPopupOverlay.classList.remove("active"); |
742 | | - } |
| 735 | + isQueued = false; |
| 736 | + isConnecting = false; |
| 737 | + clearInterval(queueInterval); |
| 738 | + queueButton.textContent = "Start Queue"; |
| 739 | + queueButton.classList.remove("in-queue"); |
| 740 | + queueStatus.textContent = "Ready"; |
| 741 | + queueStatus.classList.remove("active"); |
| 742 | + statusArea.classList.remove("active"); |
| 743 | + queueTimerDisplay.textContent = "00:00:00"; |
| 744 | + queueButton.disabled = false; |
743 | 745 |
|
744 | | - if (closeButton) { |
745 | | - closeButton.onclick = () => closeMatchPopup(); |
746 | 746 | } |
747 | 747 |
|
748 | 748 | if (mapSelectorButton) { |
|
829 | 829 | </div> |
830 | 830 | <div class="overlay" id="matchPopupOverlay"> |
831 | 831 | <div class="popup"> |
832 | | - <button class="close-icon" id="closeMatch">×</button> |
833 | 832 | <h2>Match Found</h2> |
834 | 833 | <div class="popup-content"> |
835 | | - <div class="region-found" id="foundRegion">Region: NA</div> |
| 834 | + <div class="region-found" id="foundRegion">Region: </div> |
836 | 835 | <div id="matchFoundMessage" >open the client and rejoin the game from the ranked menu</div> |
837 | | - <div class="countdown-large" id="countDownTimer">60</div> |
| 836 | + <div class="countdown-large" id="countDownTimer">00:60</div> |
838 | 837 | </div> |
839 | 838 | </div> |
840 | 839 | </div> |
841 | 840 | <div class="overlay" id="mapSelectorOverlay"> |
842 | 841 | <div class="map-panel"> |
843 | 842 | <button class="close-icon" id="closeMapSelector">×</button> |
844 | | - <h2>Select Map</h2> |
| 843 | + <h2>Select Maps</h2> |
845 | 844 | <div class="map-grid" id="mapGrid"></div> |
846 | 845 | </div> |
847 | 846 | </div> |
|
0 commit comments