Commit Graph

7354 Commits

Author SHA1 Message Date
David Capello
e149f76934 [lua] Add Range.layers/frames setters and Range:clear() 2020-04-16 19:19:18 -03:00
David Capello
48e941cb2f [lua] Add Dialog:newrow{ always } 2020-04-16 11:48:44 -03:00
David Capello
7482024827 [win] Fix opening files from File Explorer in the running instance through DDE messages 2020-04-16 11:19:39 -03:00
David Capello
58e78ad886 [win] Disable warning 4244 on MSVC 2020-04-16 11:18:45 -03:00
David Capello
8d7020a063 GifDecoder: Minor change to trace more info per frame w/GIF_TRACE() 2020-04-16 08:53:56 -03:00
David Capello
ae9c37e90c Update lua module 2020-04-15 16:27:01 -03:00
Gaspar Capello
966daf5e34 Add RgbMap algorithm option in RGB -> Indexed color mode conversion dialog 2020-04-15 15:36:50 -03:00
Gaspar Capello
80cbb2caf5 Add combobox to select RGB5A5/Octree algorithms in ColorQuantization dialog 2020-04-15 11:07:13 -03:00
Gaspar Capello
696bb9a537 Add possibility to use OctreeMap in create_palette_from_image() 2020-04-14 20:01:25 -03:00
Gaspar Capello
f1899ee397 Minor fix in OctreeMap::mapColor function 2020-04-13 11:16:40 -03:00
Gaspar Capello
ecca4a7822 Fix color scan area in delta image when the color count surpass the gif specifications 2020-04-13 09:54:32 -03:00
David Capello
2e968d7a09 Minor changes in OctreeMap: Avoid extra heap allocations for members 2020-04-10 15:51:59 -03:00
Gaspar Capello
886fdf8b3f Add OctreeMap as an alternative RgbMap implementation to RgbMapRGB53A
There is a new experimental option to switch between both RgbMap
implementations.
2020-04-10 15:47:24 -03:00
David Capello
ad31c9b7a8 Convert RgbMap into an interface and rename the old class to RgbMapRGB53A 2020-04-10 10:15:04 -03:00
David Capello
bbb6b83905 Make doc::RgbMap a regular object (don't need to be an doc::Object) 2020-04-10 08:58:59 -03:00
Gaspar Capello
43b029391f Fix an error and infinite loop when RGB image is over the gif specification color count. 2020-04-09 10:24:59 -03:00
David Capello
b007c4dd0e Minor changes/comments to new gif encoder 2020-04-09 10:24:24 -03:00
Gaspar Capello
7ed83c10cc Fix gif format encoding 2020-04-09 10:23:36 -03:00
David Capello
2af6a0493e Fix recent list of files menu
This is a problem introduced with the plugin groups, but now we use a
group to store the list of recent files. With this commit we fixed
some bugs in the impl of menu groups.
2020-04-08 17:50:17 -03:00
David Capello
85af3ce735 Fix Widget::previousSibling() impl 2020-04-08 17:48:26 -03:00
David Capello
8b1b624320 Replace NULL to nullptr in ui library 2020-04-08 17:48:06 -03:00
David Capello
28a28cff50 Update laf module 2020-04-08 17:29:57 -03:00
David Capello
b491e589fd Remove unused variable 2020-04-08 17:29:47 -03:00
David Capello
be79b519ad Fix linker error when compiling without -O2 (e.g. debug mode) 2020-04-08 12:25:23 -03:00
David Capello
b628e21e76 Replace MIN/MAX() macros with std::min/max() functions 2020-04-08 12:20:53 -03:00
David Capello
86259a64fc Replace MID() macro with base::clamp() function
In the future we will replace base::clamp() with std::clamp().
2020-04-07 19:47:16 -03:00
David Capello
fd651c4189 Set alpha=255 if the current color is MaskType when picking colors from ColorSelectors
This is a little UI improvement: If we've just picked the mask color,
and click a color selector, generally we would like to use the opaque
version of that color (instead of the completely transparent version
of that color, alpha=0, which is an useless option).
2020-04-07 12:04:07 -03:00
David Capello
ed5deb9ca3 [lua] Add Dialog:color{ onchange } event 2020-04-07 11:25:58 -03:00
David Capello
4eefb84cf3 [lua] Add possibility to change dialog title with Dialog:modify{ title=... } 2020-04-07 11:14:06 -03:00
David Capello
bb8d0e7a6a [lua] Add possibility to modify a widget label and focus it 2020-04-07 11:13:30 -03:00
David Capello
8fe01b43f6 Fix typo in dialog_class.cpp 2020-04-07 11:01:46 -03:00
David Capello
60263f4511 Update fmt module to 6.2.0 2020-04-07 11:01:15 -03:00
David Capello
482fcd3b8c Fix crash when loading plugins from CLI and compilation when !ENABLE_UI 2020-04-07 10:56:48 -03:00
David Capello
a7f3fc968a Fix compilation when !ENABLE_SCRIPTING 2020-04-07 10:44:26 -03:00
David Capello
c1a62510a5 Fix crash clicking and deleting layers from timeline sequentially (and quickly
Reported in https://igarastudio.zendesk.com/agent/tickets/656
2020-04-07 10:40:56 -03:00
David Capello
8d8c116fa8 [lua] Fix some Dialog functions to convert to string implicitly 2020-04-06 14:54:11 -03:00
David Capello
3cd97c9822 Fix crash starting the program for first time (fix #2330)
Regression introduced in 6b6b9057bf
2020-04-05 20:47:52 -03:00
David Capello
55a1fa8b81 [lua] Add Dialog:modify{} method to change widget properties 2020-04-04 19:42:44 -03:00
David Capello
2c3fd2171b [lua] Fix Dialog.data for checkboxes if the last pressed button was a checkbox 2020-04-04 19:41:30 -03:00
David Capello
150ca293ef [lua] Fix checking for missing fields on tables in Dialog methods
We've to use LUA_TNIL instead of LUA_TNONE.
2020-04-04 19:40:52 -03:00
David Capello
c73d745245 Don't show warning for untranslated text that start with '!' on widgets 2020-04-04 17:33:23 -03:00
David Capello
9da4b76976 Possibility to scroll menus (fix #2263) 2020-04-03 17:56:35 -03:00
David Capello
298c2e24e8 Add possibility to put plugin:newCommand{} in specific menu locations identified as "groups" (#1949) 2020-04-02 23:18:08 -03:00
David Capello
6b6b9057bf Add support for scripts on extensions (#1949)
It still need some work to associate the command to menus easily.

Related issues:
  https://github.com/aseprite/aseprite/issues/1403
  https://github.com/aseprite/aseprite/issues/1949
  https://github.com/aseprite/api/issues/20
  https://community.aseprite.org/t/lua-script-extension-and-menu-api/5085
2020-04-02 20:21:21 -03:00
David Capello
ba51812c89 Fix typo with auto-fit preferences 2020-03-30 11:02:28 -03:00
David Capello
9609e541e5 Fix some issue with saved defaults (selection mode and snap to grid)
These two preferences are confusing when saved with non-default
values. For example, snap to grid should be almost always turned off
and turned on only when the user do it explicitly.

The other one is the subtraction selection mode, if we save that as a
default mode, users will find that the selection tool stop working
when the program is re-started.

Both of these issues generated user support over all these years.
2020-03-30 10:39:07 -03:00
David Capello
d358e6055f Add auto-fit screen option (fix #789, fix #2267) 2020-03-30 09:16:14 -03:00
David Capello
70afe4195e [lua] Add Image(sprite) constructor (renders the first sprite frame) 2020-03-28 13:28:30 -03:00
David Capello
c7b3e15d05 [lua] Fix crash using invalid width/height in Image() 2020-03-28 13:28:25 -03:00
David Capello
76ef344f49 [lua] Support to use Image:drawSprite(sprite) without frame to render the first frame 2020-03-28 13:28:18 -03:00