From 0dca9b5b3e694e08da70940ea98a44d4584dbf3f Mon Sep 17 00:00:00 2001 From: Harley White Date: Fri, 4 Jun 2021 20:36:44 -0400 Subject: [PATCH] Fix background images --- changelog.md | 4 ++++ js/technical/systemComponents.js | 2 +- js/utils/save.js | 1 + style.css | 7 +++++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 505681a..fcbd38d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # The Modding Tree changelog: +## v2.6.0.1 - 6/4/21 +- Removed excess NaN alerts (now only checks player, not temp). +- Fixed background images covering up tree branches. + ## v2.6: Fixed Reality - 6/3/21 - Fixed issues with NaN checking. The game also will not save if the save is broken. - Added a drop-down menu component! diff --git a/js/technical/systemComponents.js b/js/technical/systemComponents.js index 61f6c3c..ca71f20 100644 --- a/js/technical/systemComponents.js +++ b/js/technical/systemComponents.js @@ -66,7 +66,7 @@ var systemComponents = { 'layer-tab': { props: ['layer', 'back', 'spacing', 'embedded'], - template: `
+ template: `
diff --git a/js/utils/save.js b/js/utils/save.js index d7dc728..5a9e5f7 100644 --- a/js/utils/save.js +++ b/js/utils/save.js @@ -1,5 +1,6 @@ // ************ Save stuff ************ function save() { + NaNcheck(player) if (NaNalert) return localStorage.setItem(modInfo.id, btoa(unescape(encodeURIComponent(JSON.stringify(player))))); localStorage.setItem(modInfo.id+"_options", btoa(unescape(encodeURIComponent(JSON.stringify(options))))); diff --git a/style.css b/style.css index f748442..37f0cc9 100644 --- a/style.css +++ b/style.css @@ -768,3 +768,10 @@ button > * { background-color: var(--background); top: 0 } + +.noBackground { + background: transparent !important; + background-image: none !important; + --background: transparent !important; +} +