Skip to content

Commit

Permalink
n-gon
Browse files Browse the repository at this point in the history
  • Loading branch information
landgreen committed Oct 8, 2024
1 parent dc1cee3 commit 0f27b34
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 137 deletions.
4 changes: 2 additions & 2 deletions n-gon/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
<details id = 'settings-details'>
<summary>settings</summary>
<div style="line-height: 150%;" class="details-div">
<input onclick="build.showImages('settings')" type="checkbox" id="hide-images" name="hide-images" style="width:17px; height:17px;">
<!-- <input onclick="build.showImages('settings')" type="checkbox" id="hide-images" name="hide-images" style="width:17px; height:17px;">
<label for="hide-images" title="hide images for fields, guns, and tech">hide images</label>
<br>
<br> -->
<input onclick="build.hideHUD('settings')" type="checkbox" id="hide-hud" name="hide-hud" style="width:17px; height:17px;">
<label for="hide-hud" title="hide: tech, damage taken, damage, in game console, new level animation">minimal HUD</label>
<br>
Expand Down
7 changes: 4 additions & 3 deletions n-gon/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1830,8 +1830,9 @@ if (localSettings.isAllowed && !localSettings.isEmpty) {
localSettings.loreCount = 0; //this sets what conversation is heard
if (localSettings.isAllowed) localStorage.setItem("localSettings", JSON.stringify(localSettings)); //update local storage
}
if (localSettings.isHideImages === undefined) localSettings.isHideImages = true //default to hide images
document.getElementById("hide-images").checked = localSettings.isHideImages
// if (localSettings.isHideImages === undefined) localSettings.isHideImages = true //default to hide images
// document.getElementById("hide-images").checked = localSettings.isHideImages
localSettings.isHideImages = true //no images

if (localSettings.isHideHUD === undefined) localSettings.isHideHUD = true
document.getElementById("hide-hud").checked = localSettings.isHideHUD
Expand Down Expand Up @@ -1876,7 +1877,7 @@ if (localSettings.isAllowed && !localSettings.isEmpty) {
if (localSettings.isAllowed) localStorage.setItem("localSettings", JSON.stringify(localSettings)); //update local storage
document.getElementById("community-maps").checked = localSettings.isCommunityMaps
simulation.isCommunityMaps = localSettings.isCommunityMaps
document.getElementById("hide-images").checked = localSettings.isHideImages
// document.getElementById("hide-images").checked = localSettings.isHideImages
document.getElementById("fps-select").value = localSettings.fpsCapDefault
document.getElementById("banned").value = localSettings.banList
}
Expand Down
Loading

0 comments on commit 0f27b34

Please sign in to comment.