Commit Graph

9 Commits

Author SHA1 Message Date
Cidwel Highwind b9b54867f1 Preview: independent zoom per mode, Show One, nav row, Adjust button
- Independent zoom for Show All and Show One modes (saved separately)
- "Single" button renamed to "Show One"
- <- -> navigation buttons on a new row (not inline with Setup/Show One)
- Animation name label shown below canvas in Show One mode
- Adjust button at bottom re-fits preview window to content size
- previewZoomAll and previewZoomOne saved/loaded in prefs
2026-04-03 17:47:04 +02:00
Cidwel Highwind fa6c3d3615 Round 5: preview layout config, single/all mode, offset indicator
- Frame offset indicator: cyan dot on thumbnails when offX/offY != 0
- GB canvases taller (220px each) to match Animations tab height
- Preview layout config: auto/fixedCols/fixedRows with value setting
- Preview Show All/Single toggle with <- -> navigation in single mode
- Preview canvas resizes responsively on zoom and mode change
- calcPreviewSize() and getPreviewGrid() helpers for layout math
- Preview zoom and mode saved/loaded in preferences
- previewSingleIdx clamped on load and mode switch
2026-04-03 17:24:07 +02:00
Cidwel Highwind cdeefd642d Round 4: two-window architecture, preview-first launch
- Plugin now opens Preview Window first on launch (primary view)
- Preview window has "Setup" button to open the Main Dialog
- Main dialog tabs: [Animations] [GB] + [Preview] toggle button
- Preview button toggles separate preview window on/off
- Tab order: Animations, GB, Preview (GB is now second)
- Removed embedded Preview tab content (redundant with window)
- Fix Analyze nil compare error (GB_OPT_H now module-level)
- Labels changed to separators for consistent styling
- Frames label: "Frames (L-click=select, R-click=remove, drag=reorder)"
- GB canvases taller (200px each) to match Animations tab height
- refreshSource() moved to module level for both windows
- getFrameImageGlobal() at module level for shared access
- Cross-dialog updates (preview close updates main dialog button)
- Preview window has its own refresh timer for source updates
2026-04-03 16:57:45 +02:00
Cidwel Highwind 99ca77ef3b Round 3: frame offsets, compact layout, auto-reopen preview
- Remove preview selection/offset buttons (reverted jump feature)
- Add per-frame pixel offsets (Up/Down/Left/Right/Reset) in Animations
  tab for visual jump effects without creating extra tiles
- Frame offsets applied in all previews (main + separate window)
- Remove separator between Source and Frames canvases for compact layout
- Move "Frames" label below frames canvas, remove action separator
- Shared zoom between Source and Frames canvases (wheel affects both)
- Separate preview window: content-based sizing instead of copying main
- Remember and auto-reopen separate preview window on plugin launch
- GB: both Occurrences and Optimized canvases same height (150px)
- GB: remove separator between canvases, label below Optimized
- GB: shared zoom between both canvases
- Config: remove view heights options (didn't work)
2026-04-03 16:29:39 +02:00
Cidwel Highwind 6449f20a35 UX round 2: clone, preview offsets, configurable views, GB tile W/H
- Animation buttons renamed to +/-/Rename/Clone for compact layout
- Clone button: copy animation with optional Flip X on all frames
- Frame buttons renamed to FlipX/FlipY/<-/->/Del to save width
- Pixel-perfect integer scaling for frame thumbnails (THUMB_SIZE=24)
- Source canvas taller by default (400px) and configurable in Config
- Preview tab: L-click selects animation, Up/Down/Left/Right/Reset
  buttons offset sprites visually for jump effects (preview-only)
- Preview offsets also apply in separate preview window
- Config: Zoom removed (wheel only), labels Sprite W/H, GB Tile W/H
  separate, three view height options (Source/Occurrences/Optimized)
- Config button visible on all tabs (not just Animations)
- GB: Silhouette checkbox before Compress, separator text L-click=select
- GB: clicking already-selected tile in Optimized deselects it
- GB tile analysis fully supports non-square tiles (W != H)
- Copy to clipboard: fixed white background on transparent areas
- Tab mismatch fix: always opens on Animations tab
2026-04-03 15:56:12 +02:00
Cidwel Highwind e805e75925 Major UX overhaul: combobox anims, configurable tile size, UI cleanup
- Replace animation buttons with alphabetically-sorted combobox
- Add Rename animation button, remove Move Up/Down buttons
- Remove Clear Anim button; enhance Remove to delete last frame or animation
- Fix frame thumbnails aspect ratio (no longer squished)
- Remove Preview section from Animations tab
- Add Separate Window button to Preview tab for detachable preview
- Rename GB buttons: Analyze, Find similars, Threshold
- Reorder GB tab: Occurrences in Source before Optimized Spritesheet
- Change Optimized canvas to L-click select (was R-click)
- Add click-to-select on Source occurrences canvas with layer overlap cycling
- Make GB tile size configurable in Config (default 8x8)
- Parameterize all hash/analysis functions with tile size
- Fix Copy to Clipboard to preserve transparency
- Remove source viewport height/auto-resize options
- Remove Close button from dialog
- Fix tab mismatch on plugin open
- Fix spacing issues on Preview and GB tabs
- Change hints to L-click/R-click
- Save currentAnimName instead of index for robust prefs
2026-04-03 15:00:23 +02:00
Cidwel Highwind 0c1d5d9c90 Improve animations tab, fix Save as Layer, and enhance GB similarity colors
- Fix Save as Layer: convert image to sprite color mode before creating cel
- Remove "Selected ->" label (brackets on buttons suffice)
- Add Remove button and right-click to remove frames in strip
- Add Move Animation Up/Down buttons for reordering animations
- Add configurable source viewport height and auto-resize with zoom
- Rename GB buttons: Analyze Duplicates, Analyze Similars, Similarity >=X%
- Reorder GB buttons: Analyze -> Similars -> Similarity threshold
- Use distinct colors per group for similar tile highlighting (union-find)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:46:31 +02:00
Cidwel Highwind 534fc09da3 Major UI overhaul and bug fixes
- Fix Save Layer creating empty layers (clone image before creating cel)
- Fix Copy to Clipboard (use MaskAll instead of SelectAll)
- Remove Layer saved alert dialog
- Rename tabs: Setup to Animations, Render to Preview
- Config button now visible on all tabs
- Animation selection: Add/Remove buttons, brackets on selected, Selected label
- Delete animation now asks for confirmation
- Source canvas: left-click add or scroll drag, mouse wheel zoom
- Frames strip: click to select, drag and drop to reorder frames
- New frame actions: Flip X, Flip Y, Move Left, Move Right, Clear Anim
- Added vertical flip support for frames
- Removed destructive Clear All button
- Added Preview canvas in Animations tab with wheel zoom
- Updated all hint labels to be more descriptive
- Backward-compatible prefs migration for old tab names

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 13:14:10 +02:00
Cidwel Highwind 23d74a6f2a Initial commit: add aniphallow.lua Aseprite tool
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 12:11:29 +02:00