From 3517f6121901d936d4cc456c4d936a37e2711571 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Sat, 7 Feb 2026 21:10:24 -0500 Subject: [PATCH] Add brush cursor preview, keyboard shortcuts, and command system --- scripts/map_editor.html | 184 +++++++++++++++++++++++++++++++++++----- 1 file changed, 164 insertions(+), 20 deletions(-) diff --git a/scripts/map_editor.html b/scripts/map_editor.html index 8b54680..c211232 100644 --- a/scripts/map_editor.html +++ b/scripts/map_editor.html @@ -82,11 +82,23 @@ border-width: 4px; } - #canvas { + #canvas-wrapper { + position: relative; + display: inline-block; + } + + #canvas, #overlay-canvas { image-rendering: pixelated; image-rendering: crisp-edges; } + #overlay-canvas { + position: absolute; + top: 0; + left: 0; + pointer-events: none; + } + .actions button { display: block; width: 100%; @@ -275,7 +287,10 @@
- +
+ + +