diff --git a/public/CHANGELOG.md b/public/CHANGELOG.md index d5859ea..9e34de2 100644 --- a/public/CHANGELOG.md +++ b/public/CHANGELOG.md @@ -1,5 +1,8 @@ All notable changes to this project will be documented in this file. +## [2.4.0] - 2026-01-03 +- Add pixel editor + ## [2.3.0] - 2026-01-01 - Add authentication - You can now save projects and open them diff --git a/src/components/DrawTab.vue b/src/components/DrawTab.vue new file mode 100644 index 0000000..72b46ef --- /dev/null +++ b/src/components/DrawTab.vue @@ -0,0 +1,504 @@ + + + + + diff --git a/src/components/SpriteCanvas.vue b/src/components/SpriteCanvas.vue index ac2d924..8b8d3ed 100644 --- a/src/components/SpriteCanvas.vue +++ b/src/components/SpriteCanvas.vue @@ -25,6 +25,10 @@ Copy to frame... +
+ @@ -299,6 +303,7 @@ (e: 'flipSprite', id: string, direction: 'horizontal' | 'vertical'): void; (e: 'copySpriteToFrame', spriteId: string, targetLayerId: string, targetFrameIndex: number): void; (e: 'replaceSprite', id: string, file: File): void; + (e: 'openPixelEditor', layerId: string, frameIndex: number): void; }>(); const previewContainerRef = ref(null); @@ -691,6 +696,13 @@ replacingSpriteId.value = null; input.value = ''; }; + + const openPixelEditor = () => { + if (contextMenuSpriteId.value && contextMenuLayerId.value) { + emit('openPixelEditor', contextMenuLayerId.value, currentFrameIndex.value); + hideContextMenu(); + } + };