Add shape tools, select/move, reference overlay, and color tools to pixel editor
Extends the in-app sprite editor with four feature sets: - Shape tools: line (L), rectangle (R), ellipse (O) with click-drag live preview and a FILL toggle for outline vs filled rect/ellipse. - Select & move: rectangular marquee (M) to select, drag-to-move via a floating layer, arrow-key nudge, and clipboard ops (Ctrl+C/X/V, Delete, Enter/Esc to commit). Undo/redo and save auto-bake any pending move. - Reference overlay: load any image as an adjustable-opacity backdrop to trace over (rendered under the artwork), with a show/hide toggle. - Color tools: brush opacity slider, persistent custom palette (localStorage; right-click to remove), and an auto-updating recent colors row. Cache-bust admin assets to ?v=20260609c so the update loads without a manual hard-refresh. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -7,7 +7,7 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/admin/admin.css?v=20260609b">
|
||||
<link rel="stylesheet" href="/admin/admin.css?v=20260609c">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Login Screen -->
|
||||
@@ -297,7 +297,7 @@
|
||||
<div id="toast" class="toast hidden"></div>
|
||||
</div>
|
||||
|
||||
<script src="/admin/pixel-editor.js?v=20260609b"></script>
|
||||
<script src="/admin/admin.js?v=20260609b"></script>
|
||||
<script src="/admin/pixel-editor.js?v=20260609c"></script>
|
||||
<script src="/admin/admin.js?v=20260609c"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user