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:
parent
4399c9c75a
commit
2ab983ec0a
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user