Skip to content

Feat: add secondary color support and editor UX improvements#686

Open
leandrolopesp wants to merge 2 commits into
kitao:mainfrom
leandrolopesp:editor_secondary_color
Open

Feat: add secondary color support and editor UX improvements#686
leandrolopesp wants to merge 2 commits into
kitao:mainfrom
leandrolopesp:editor_secondary_color

Conversation

@leandrolopesp

Copy link
Copy Markdown

Palette:
- Select Secondary Color by:
- Right-click
- Ctrl + [1-8] or Ctrl + Shift + [1-8]
- Drawing with Pencil, Rectangle, Circle, or Bucket using right-click applies the Secondary Color.

Selection Tool:
- Use Ctrl + Arrow keys to move the selection in the image editor.
- "Delete" key deletes current selection and replaces it with the Secondary Color
- Movement leaves the Secondary Color behind.

Image Viewer:
- Enabled mouse scroll (Y axis)
- Fixed right-click drag bug
- Changed selection from square to corner markers (Fixes #659)
- Added __on_viewport_y_set and __on_viewport_x_set handlers to clamp values (Fixes the right click drag bug)

Press Page Up/Down to change the image

Palette:
    - Select Secondary Color by:
        - Right-click
        - Ctrl + [1-8] or Ctrl + Shift + [1-8]
    - Drawing with Pencil, Rectangle, Circle, or Bucket using right-click applies the Secondary Color.

Selection Tool:
    - Use Ctrl + Arrow keys to move the selection in the image editor.
	- "Delete" deletes current selection and replaces it with the Secondary Color
    - Movement leaves the Secondary Color behind.

Image Viewer:
    - Enabled mouse scroll (Y axis)
    - Fixed right-click drag bug
    - Changed selection from square to corner markers
    - Added __on_viewport_y_set and __on_viewport_x_set handlers to clamp values

Press Page Up/Down to change the image
Mouse wheel:

- Middle button click: pick primary color. Ctrl + middle click: pick secondary color.

- Middle button drag: navigate in image and canvas selectors.

- Mouse wheel scroll: change selected tool when pointing to canvas.

Navigation keys:

- Home/End: select the first/last sprite in the same row.

- Ctrl + Home/End: select the first/last sprite in the sprite sheet.

- Pg Up/Down: scroll by 8 sprites.

- Ctrl + Pg Up/Down: select image index.
@leandrolopesp

Copy link
Copy Markdown
Author

New UX Improvements (mouse wheel/navigation keys)

Mouse wheel:

  • Middle button click: pick primary color. Ctrl + middle click: pick secondary color.
  • Middle button drag: navigation in image and canvas selectors.
  • Mouse wheel scroll: change selected tool when pointing to canvas.

Navigation keys

  • Home/End: select the first/last sprite in the same row.
  • Ctrl + Home/End: select the first/last sprite in the sprite sheet.
  • Pg Up/Down: scroll by 8 sprites.
  • Ctrl + Pg Up/Down: select image index (behavior changed from previous commit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Focus indicator in ImageViewer obscures image content

1 participant