Clear connections when editing a new level

This commit is contained in:
Eevee (Evelyn Woods) 2020-09-25 05:39:15 -06:00
parent 0c7a2ce6e5
commit f0bfa12083
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);