Clear connections when editing a new level
This commit is contained in:
parent
0c7a2ce6e5
commit
f0bfa12083
@ -1569,6 +1569,7 @@ class Editor extends PrimaryView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load connections
|
// Load connections
|
||||||
|
this.connections_g.textContent = '';
|
||||||
for (let [src, dest] of Object.entries(this.stored_level.custom_trap_wiring)) {
|
for (let [src, dest] of Object.entries(this.stored_level.custom_trap_wiring)) {
|
||||||
let [sx, sy] = this.stored_level.scalar_to_coords(src);
|
let [sx, sy] = this.stored_level.scalar_to_coords(src);
|
||||||
let [dx, dy] = this.stored_level.scalar_to_coords(dest);
|
let [dx, dy] = this.stored_level.scalar_to_coords(dest);
|
||||||
|
|||||||
@ -767,6 +767,7 @@ main.--has-demo .demo-controls {
|
|||||||
line-height: 1;
|
line-height: 1;
|
||||||
background: url(icons/tool-bg-unselected.png) no-repeat;
|
background: url(icons/tool-bg-unselected.png) no-repeat;
|
||||||
border: none;
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
.icon-button-set button.-selected {
|
.icon-button-set button.-selected {
|
||||||
background-image: url(icons/tool-bg-selected.png);
|
background-image: url(icons/tool-bg-selected.png);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user