Swap ctrl with right click for most editor tools; add bg tile

Also merges hover with mouse operations proper, which simplifies some
things.
This commit is contained in:
Eevee (Evelyn Woods) committed 2021-03-14 15:08:19 -06:00
1 parent 4399c9c75a
commit 2ab983ec0a
2 files changed
+505 -327

No files matched your search

+5 -4
View File
@@ -30,11 +30,12 @@ class TileEditorOverlay extends TransientOverlay {
} }
this.editor.mark_cell_dirty(this.cell); this.editor.mark_cell_dirty(this.cell);
} }
else { else if (this.tile === this.editor.fg_tile) {
// TODO i guess i'm just kind of assuming it's the palette selection, but it doesn't
// necessarily have to be, if i... do something later
// The change hasn't happened yet! Don't redraw until we return to the event loop // The change hasn't happened yet! Don't redraw until we return to the event loop
setTimeout(() => this.editor.redraw_palette_selection(), 0); setTimeout(() => this.editor.redraw_foreground_tile(), 0);
}
else if (this.tile === this.editor.bg_tile) {
setTimeout(() => this.editor.redraw_background_tile(), 0);
} }
} }
+500 -323
View File
File diff suppressed because it is too large. Load diff