David Capello
9801010a2b
Update webp module
...
Possible fix for #2387 ?
2020-05-18 08:32:49 -03:00
David Capello
a2cdde8ec8
[lua] Add "enabled" and "visible" properties when creating new widgets
...
Fixed https://github.com/aseprite/api/issues/29
2020-05-15 19:03:46 -03:00
David Capello
f491a2a506
Add ui::Entry::Range to simplify code
2020-05-15 18:24:35 -03:00
David Capello
fa187b35a8
Don't delete extra char using Ctrl+backspace to delete words in ui::Entry
2020-05-15 18:15:59 -03:00
David Capello
7cde901047
Alt+backspace deletes a word too on ui::Entry fields
2020-05-12 15:11:15 -03:00
David Capello
68720424c0
[lua] Dialog:modify{} now can modify the text of a separator
...
Fixes https://github.com/aseprite/api/issues/27
2020-05-11 12:26:43 -03:00
David Capello
d9b0887a3a
Fix crashes running tests from CLI
2020-05-08 19:44:29 -03:00
David Capello
72ceaa010f
Save user data changes correctly in current recovery session
2020-05-08 18:34:54 -03:00
David Capello
7e1e9a238e
Write/read user data from layers when recovering lost sprites ( fix #2373 )
2020-05-08 18:31:48 -03:00
David Capello
46f4002368
Fix crashes saving sprites with '%' char in their filename
...
To fix this we changed the way StatusBar text is handled (we are using
fmt::format() in StatusBar instead of printf-like ... args now).
2020-05-08 17:39:55 -03:00
David Capello
6e4b96f548
Update laf to fix crash when we receive a WM_ACTIVATE ( #2374 )
2020-05-08 12:55:51 -03:00
David Capello
a54e2ce13f
Fix eraser tool/stylus tip when dynamics for gradients are on
2020-05-07 21:40:03 -03:00
David Capello
7b105261ea
Fix syncing brush size/angle with max values after opening dynamics popup
2020-05-07 18:39:58 -03:00
David Capello
4123e98d16
Add option to switch dynamic gradient between BG>FG and FG>BG
2020-05-07 16:08:32 -03:00
David Capello
4087bd5782
Merge branch 'master' of https://github.com/grauw/aseprite into grauw-master
2020-05-07 14:04:17 -03:00
David Capello
9447704989
Update laf module
2020-05-07 13:49:09 -03:00
David Capello
c3ebf40cb1
Fix shading ink for RGB and Grayscale modes
...
The colors in the shades are not necessary to be in the palette or
related to a palette index in these modes (or even more, the color
palettes can be duplicated), the only important things are the values
in the shades for RGB and Grayscale, so in these modes now we access to
ToolLoop::getShade() directly and create a mini-palette to find the
colors there (ignoring the sprite palette completely).
2020-05-06 17:14:47 -03:00
David Capello
6294ac74e0
Fix accessing to invalid indexes in the doc::Remap created for ColorShades
...
This can happen when we've configured a set of color entries in the
shading ink and then we switch between documents with different color
palettes, etc.
2020-05-05 20:13:53 -03:00
David Capello
056cd3cdfc
Minor changes in ColorShades member functions to avoid copying a Shade object
2020-05-05 20:10:54 -03:00
David Capello
82ab0bc40a
Avoid creating an extra brush for the brush preview
2020-05-05 19:42:07 -03:00
David Capello
263236deb3
Several fixed for Dynamics
...
* Now the max value in dynamics is equal to the brush size, so changing
the brush size (e.g. switching between pencil/eraser tools) will
change the max brush size (which is the most common parameter to
change)
* Added mini_slider style for min/max brush/angle values
* Fixed some issues clicking outside the dynamics popup
2020-05-02 11:59:34 -03:00
David Capello
cc7bdbcec4
Add a slider style in theme
...
We've added some code to handle backward compatibility with themes. In
this way we can still load old themes in the latest version but should
look as in previous versions (this will not be done with previous
properties or parts migrated to styles, so we start from now on).
2020-05-01 23:31:10 -03:00
David Capello
3555bbe29f
Fix Show Brushes/Dynamics commands to switch the popup
2020-05-01 13:38:12 -03:00
Laurens Holst
b3681fdbb0
[lua] Implement Dialog:modify for more properties
...
Support modifying the following properties:
Dialog:number { decimals }
Dialog:slider { min, max, value }
Dialog:combobox { option }
Dialog:color { color }
Dialog:shades { colors }
Dialog:file { filename }
2020-04-30 22:47:00 +02:00
David Capello
0ad50373d3
Enable dynamics for Eraser
2020-04-30 09:02:05 -03:00
David Capello
b989b46ff2
Log warnings about widget styles only on debug build
2020-04-30 08:45:34 -03:00
Laurens Holst
1311173d97
[lua] Add missing Dialog onchange and onrelease events
...
Adding the following events:
Dialog:entry { onchange }
Dialog:number { onchange }
Dialog:slider { onchange, onrelease }
Dialog:combobox { onchange }
2020-04-29 23:38:15 +02:00
David Capello
776336320f
Fix issues encoding TGA files
2020-04-29 17:42:14 -03:00
David Capello
682b2c230c
Fix ASSERT that can fail when loading a sequence of files
2020-04-29 17:30:47 -03:00
David Capello
99a9ee49cb
Fix crash at start up on trial version (when !ENABLE_SCRIPTING)
2020-04-25 09:38:19 -03:00
David Capello
2418a075ca
Restore DynamicsField selected status when popup is closed
2020-04-24 13:39:03 -03:00
David Capello
a6c55b0210
Fix DynamicsPopup::MinMaxSlider when UI scale change
2020-04-24 12:34:54 -03:00
David Capello
b6a86e6aea
Fix DitheringSelector widget issues with UI Scaling changes
2020-04-24 12:25:24 -03:00
David Capello
05e351c10d
Update some C++11 in conding styles
2020-04-24 12:07:52 -03:00
David Capello
0a65ebcb7c
Update laf module
2020-04-24 12:07:40 -03:00
David Capello
1d5edd6dc1
Fix min/max marks X positions in DynamicsPopup sensors
2020-04-24 12:04:56 -03:00
David Capello
79900db158
Fix issue showing the dynamics popup when the UI scaling changed
2020-04-24 12:04:36 -03:00
David Capello
c99a566635
Refactor velocity sensor with tools::VelocitySensor class
2020-04-24 11:19:35 -03:00
David Capello
bb07d25025
[osx] Fix some leaks regenerating native menus
2020-04-24 09:24:42 -03:00
David Capello
7ad1b7b965
Simplify handling of dithering matrices in extensions to avoid memory leaks
2020-04-23 23:41:08 -03:00
David Capello
fa54bb1950
Fix memory leak in load_document()
2020-04-23 23:32:09 -03:00
David Capello
9fd9ea365f
Fix regression introduced with dynamic gradients
...
Now inks need a prepareForPointShape() call.
2020-04-23 20:26:18 -03:00
David Capello
1d15bacdcd
Add sensor tweaks to specify min/max thresholds of the sensor input
...
In this way we can translate the sensor input to a better output range
for our specific device (mouse, stylus, etc.).
2020-04-23 18:03:34 -03:00
David Capello
8677c809fe
Update laf module
2020-04-23 13:38:58 -03:00
David Capello
4cfa5e743e
Add addition mode back for Hue/Saturation filter ( fix #1848 )
2020-04-23 12:05:09 -03:00
David Capello
d1843fcf55
Fix interpolation between stroke points with line brush ( fix #728 )
...
Related to #245 , and there are still problems with gaps using new
dynamic angle parameters.
2020-04-23 11:30:36 -03:00
David Capello
3b370c2ff5
Minor formatting changes
2020-04-22 20:20:04 -03:00
David Capello
3c1ea2f407
Add/process dynamic data in/from stroke points (related to #710 )
...
* Converted Stroke points from gfx::Point to Stroke::Pt
* Process gradient data to create shading betweens points or dithering
with new doc::Brush patterns
2020-04-22 20:17:14 -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
5affdbbae1
Shox extensions in different categories in the Preferences dialog
2020-04-20 14:20:07 -03:00