Commit Graph

177 Commits

Author SHA1 Message Date
David Capello c99a566635 Refactor velocity sensor with tools::VelocitySensor class 2020-04-24 11:19:35 -03:00
David Capello 79f9e28ce8 Added pen pressure sensitivity (fix #710)
- Added support to detect eraser tip on Linux (#610)
- Related to #139
- Still needs works for gradients and better brush interpolations
  between stroke points
- Requested several times, e.g. https://community.aseprite.org/t/1077
  https://community.aseprite.org/t/1881, steam forum, etc.
2020-04-21 22:27:49 -03:00
David Capello b491e589fd Remove unused variable 2020-04-08 17:29:47 -03:00
David Capello 9fe05a5dd5 Fix crash double-clicking a moving selection (fix regression in 7b07f29f0b)
Here we avoid two ExpandCelCanvas at the same time with
MovingPixelsState + DrawingState. Double-clicking inside the selection
when we are moving it (MovingPixelsState) could start a new
DrawingState which creates a new ToolLoopImpl that needs a new
ExpandCelCanvas. So we have to drop the pixels before.
2020-02-17 08:28:30 -03:00
David Capello 7b07f29f0b Add possibility to select multiple tiles with double-click + dragging mouse (fix #1988)
Fixes: https://community.aseprite.org/t/1929
Related to #939
2020-02-16 12:42:29 -03:00
David Capello 30b2585037 Save grid bounds inside .aseprite files and doc::Sprite (fix #688) 2019-10-10 15:08:59 -03:00
David Capello 79795b97a9 Fix hang if we press Cmd-S two or more times quickly to launch File > Save
With this we avoid to unintentional execute two or more times a
command when we are already in a command execution.
2019-06-03 23:02:24 -03:00
David Capello b0163f3937 Don't crash with div by zero when grid bounds has an invalid value 2019-05-27 23:53:57 -03:00
David Capello 0c6e8de9e5 Double-click opens the slice properties dialog w/Slice tool 2019-05-07 10:33:05 -03:00
David Capello e8716cbb6e Improve context bar for slice tool (combobox of slices + action buttons) 2019-05-07 10:28:37 -03:00
David Capello 73de6c8b1d Add ability to edit multiple slices
Related to #721 and #1651, still need more work to give a better UX to
edit static and animated slices.
2019-05-02 16:26:13 -03:00
David Capello c7955337c2 Disable Shift+click to draw straight lines when we are in SelectBoxState 2019-04-29 15:50:34 -03:00
Gaspar Capello f53544842c Fix non-normal blend modes when the backdrop is transparent (fix #1096) 2019-03-09 12:40:31 -03:00
David Capello d8b95c30e8 Add option to disable double-click to select a grid tile (fix #1901) 2018-11-15 19:17:19 -03:00
Gaspar Capello b3771472c3 Add default info on status bar (fix #1874) 2018-11-14 18:04:26 -03:00
David Capello 3a77321597 Add "intersect" selection mode
Discussions:
https://community.aseprite.org/t/intersectional-selection/801
https://community.aseprite.org/t/feature-request-intersect-with-selection-tool/1797
2018-10-26 14:04:08 -03:00
Gaspar Capello 7b4609d2d1 Fix move symmetry when zoom tool is active (fix #1845) 2018-08-30 18:13:03 -03:00
David Capello 5cb2d984f0 Rename she -> os 2018-08-09 12:58:43 -03:00
David Capello f2ed45e795 Replace base::UniquePtr -> std::unique_ptr 2018-08-08 17:27:26 -03:00
David Capello b3c89cd110 Rename DocumentView -> DocView 2018-07-14 23:24:49 -03:00
David Capello 8d3da46ac9 Rename DocumentReader/Writer -> DocReader/Writer 2018-07-14 22:49:22 -03:00
David Capello a360c4fcc4 Merge branch 'master' 2018-07-07 12:20:25 -03:00
David Capello 9c79ea2b77 Rename app::Document -> Doc 2018-07-07 11:54:44 -03:00
David Capello d00fc99138 Rename DocumentRange -> DocRange 2018-07-07 10:07:21 -03:00
Gaspar Capello a69a120e14 Flip command changes to moving pixels state (fix #1738) 2018-07-06 16:22:44 -03:00
David Capello e06735a4c0 Move EditorPreRender code to EditorPostRender
This simplify Editor::drawOneSpriteUnclippedRect() impl to create an
alternative version of the renderer in the future.
2018-06-21 12:58:11 -03:00
David Capello 744e40b4b7 Show full animation length/tag length on status bar (fix #1528) 2018-06-08 16:41:24 -03:00
Gaspar Capello a7c7e82aa8 Fix clickable pivot pos in StandbyState (fix #1608)
Also reported in https://community.aseprite.org/t/pivot-point-doesnt-recalibrate-when-setting-its-direction/1228
2018-05-03 11:39:01 -03:00
David Capello 072e223ec5 Fix eyedropper to use the real mouse position received in messages
Instead of the global mouse position, we can use the more proper
mouse position receive in editor messages.
2018-03-16 12:26:38 -03:00
David Capello 086445d9a1 Fix triggering commands with Shift+key when a freehand tool is the active one (reported in #1604) 2017-12-06 15:20:29 -03:00
David Capello e0a60b6748 Generate the list of command IDs from en.ini file 2017-12-01 15:10:21 -03:00
David Capello eb3143ce21 Rename CommandsModule to Commands 2017-11-30 12:24:07 -03:00
David Capello 76aee61eae Fix drawing straight lines w/Pencil tool and Shift+right button
https://community.aseprite.org/t/eraser-tool-right-click-shift-should-work/726
2017-11-27 13:54:27 -03:00
David Capello 29c2c0cd90 Fix status bar position depending on the tiled mode 2017-11-10 15:04:09 -03:00
David Capello ee3ade44b8 Show symmetry lines in the main tile 2017-11-09 18:19:18 -03:00
David Capello b638b34139 Move selection edges to the main tile position 2017-11-08 16:16:13 -03:00
David Capello ec2a1f229d Possibility to Add/Subtract selection inside the selection
https://community.aseprite.org/t/470
2017-09-27 13:08:22 -03:00
David Capello 390d954ceb Add option to disable straight line preview w/Shift+Pencil tool 2017-09-08 16:04:18 -03:00
David Capello 2d51b8dfff Disable selection handles when a key modifier is pressed
From: https://twitter.com/ChevyRay/status/893563998410387457
2017-09-08 12:07:21 -03:00
David Capello 7323f1d071 Fix keyboard shortcuts with Shift+ key when pencil tool is active 2017-06-19 13:17:09 -03:00
David Capello a370a6e719 Pencil: support multiple lines with Shift+click (#1387) 2017-06-16 16:42:55 -03:00
David Capello 265d18635c Pencil: Shift key shows a real-time preview of a straight line (#1387) 2017-06-16 16:28:48 -03:00
David Capello cc7bde6cd1 Fix some compiler warnings (implicit casts & unused vars) 2017-04-19 19:26:23 -03:00
David Capello e5c15161e8 Add a new mouse cursor to move selection edges
With this change the app-specific cursors were removed from the ui library. Maybe it needs some clean-up for following versions.
2017-04-06 18:41:18 -03:00
David Capello 90c364fe30 Add possibility to drag & drop the selection 2017-04-06 15:26:01 -03:00
David Capello 76df84491e Support horizontal/vertical symmetry at the same time (fix #1190) 2017-03-27 15:27:37 -03:00
David Capello 60ce295870 Move timeline code to app/ui/timeline/ folder 2017-03-26 13:33:12 -03:00
David Capello f01e5ad5f3 Add Move Slice tool 2017-03-16 12:08:56 -03:00
David Capello 643cad5c97 Add basic implementation of slice tool (#721) to modify theme parts
It still need support to export to .aseprite-data as <slice> XML elements, and animation support.
2017-03-06 19:27:43 -03:00
David Capello 6c9c0066a0 Replace ui::CurrentTheme with ui::set/get_theme() 2017-02-08 14:50:58 -03:00