Skip to content

Commit

Permalink
Fix + update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliastik committed Oct 29, 2024
1 parent c797797 commit 232a168
Show file tree
Hide file tree
Showing 7 changed files with 5,203 additions and 14,895 deletions.
2 changes: 1 addition & 1 deletion dist/GameEngineWorker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/SnakeIA-node.js

Large diffs are not rendered by default.

14 changes: 2 additions & 12 deletions dist/SnakeIA.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/SnakeIA.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! https://mths.be/utf8js v2.1.2 by @mathias */
8 changes: 0 additions & 8 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,13 @@ function showSettings() {
document.getElementById("onlineEnableClientSidePredictions").checked = false;
document.getElementById("showDebugInfo").checked = false;
document.getElementById("textOutput").checked = false;
document.getElementById("highDpi").checked = false;

if(settings.enableAnimations) document.getElementById("enableAnimations").checked = true;
if(settings.renderBlur) document.getElementById("renderBlur").checked = true;
if(settings.enableMultithreading && workersAvailable) document.getElementById("enableMultithreading").checked = true;
if(settings.onlineEnableClientSidePredictions) document.getElementById("onlineEnableClientSidePredictions").checked = true;
if(settings.showDebugInfo) document.getElementById("showDebugInfo").checked = true;
if(settings.textOutput) document.getElementById("textOutput").checked = true;
if(settings.enableHighDpiRendering) document.getElementById("highDpi").checked = true;
document.getElementById("graphicSkin").value = settings.graphicSkin;

if(!workersAvailable) {
Expand Down Expand Up @@ -202,11 +200,6 @@ document.getElementById("textOutput").onclick = function() {
saveSettings();
};

document.getElementById("highDpi").onclick = function() {
customSettings.enableHighDpiRendering = this.checked;
saveSettings();
};

document.getElementById("graphicSkin").onchange = function() {
customSettings.graphicSkin = this.value;
saveSettings();
Expand Down Expand Up @@ -2420,7 +2413,6 @@ function translateContent() {
document.getElementById("aiAssistantInfos").setAttribute("aria-label", i18next.t("settings.aiAssistantInfos"));
document.getElementById("multithreadingInfos").setAttribute("aria-label", i18next.t("menu.multithreadingInfos"));
document.getElementById("onlineEnableClientSidePredictionsInfos").setAttribute("aria-label", i18next.t("menu.onlineEnableClientSidePredictionsInfos"));
document.getElementById("highDpiInfos").setAttribute("aria-label", i18next.t("menu.highDpiInfos"));
document.querySelectorAll(".settingNotAvailable").forEach(e => {
e.setAttribute("aria-label", i18next.t("menu.settingNotAvailable"));
});
Expand Down
Loading

0 comments on commit 232a168

Please sign in to comment.