From f0bfa12083704082c63e8a66b066327a0c90e0ea Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 25 Sep 2020 05:39:15 -0600 Subject: [PATCH] Clear connections when editing a new level --- js/main.js | 1 + style.css | 1 + 2 files changed, 2 insertions(+) diff --git a/js/main.js b/js/main.js index 86c493e..5ed5cfc 100644 --- a/js/main.js +++ b/js/main.js @@ -1569,6 +1569,7 @@ class Editor extends PrimaryView { } // Load connections + this.connections_g.textContent = ''; for (let [src, dest] of Object.entries(this.stored_level.custom_trap_wiring)) { let [sx, sy] = this.stored_level.scalar_to_coords(src); let [dx, dy] = this.stored_level.scalar_to_coords(dest); diff --git a/style.css b/style.css index 44f04dd..f5f0c52 100644 --- a/style.css +++ b/style.css @@ -767,6 +767,7 @@ main.--has-demo .demo-controls { line-height: 1; background: url(icons/tool-bg-unselected.png) no-repeat; border: none; + border-radius: 0; } .icon-button-set button.-selected { background-image: url(icons/tool-bg-selected.png);