Commit Graph

9738 Commits

Author SHA1 Message Date
David Capello
67a971618d [precommit] Allow tabs in .gpl files and .gitmodules 2024-12-10 22:15:30 -03:00
David Capello
e47148a360 [pre-commit] Autoupdate packages 2024-12-10 14:06:43 -03:00
David Capello
db7c4658be [pre-commit] Remove codespell 2024-12-10 14:00:21 -03:00
Christian Kaiser
102624cad3 Add pre-commit configuration and documentation. 2024-12-10 13:52:39 -03:00
David Capello
f5f3cc03b9 Update laf module 2024-12-10 13:51:35 -03:00
David Capello
70f2cd9559 Remove duplicated code checking if mnemonic+modifiers are pressed 2024-12-10 10:16:20 -03:00
David Capello
cfc92e7cdb Add { } in switch-case to define vars inside
This is required if a new case is added below in the future to avoid
compiler errors. It's better to always use { } if we're going to
define local variables for the case.
2024-12-10 09:31:32 -03:00
Martín Capello
0edc4e16ed Disable and reset columns/rows according to type 2024-12-10 09:30:29 -03:00
Martín Capello
26a750108c Break long line 2024-12-10 09:30:29 -03:00
Martín Capello
a0e8f8653c Add columns and rows parameters 2024-12-10 09:30:29 -03:00
Martín Capello
9ca6368088 Fix button's kKeyUpMessage handling
Now the checkbox button skips the kKeyUpMessage when the key being
depressed is not the space key and is not the associated mnemonic key.
Before this change, for instance, if a checkbox received the focus by
using the Tab key, the kKeyUpMessage (of the Tab key) was intercepted by
the checkbox and triggered the onClick() event.
2024-12-10 09:30:29 -03:00
Martín Capello
8a8a324651 Add columns and rows fields to Import Sprite Sheet 2024-12-10 09:30:29 -03:00
Martín Capello
a99161a2d2 Add MaskByColor command lua tests 2024-12-09 19:26:46 -03:00
Martín Capello
ad0d30b2df Set appropriate default parameters values
Take the default values for the command parameters from the UI when the
UI is available and ui=false
2024-12-09 19:26:46 -03:00
Martín Capello
8d7e6e3f5b Remove MSVC warning deactivation
This is because now it is disabled by using laf-base flags
2024-12-09 19:26:46 -03:00
Martín Capello
2596af548a Add "ui" param to MaskByColorCommand (fix #2774) 2024-12-09 19:26:46 -03:00
Martín Capello
4dc7ba6dc0 Move code into a MaskByColorWindow class
Refactor code to separate responsibilities, now the UI related code is
in its own class and the command class looks cleaner
2024-12-09 19:26:46 -03:00
David Capello
5464c4a3c2 Minor fixes for the new "tile index" in status bar (#2082)
* Only show when we are inside the grid bounds or tilemap layer
  bounds (don't show it for negative tile positions)
* Count final "partial column" for the tile index
2024-12-09 15:26:16 -03:00
Liebranca
ebd17b0ced Show grid cell index in status bar (#2082) 2024-12-09 15:11:06 -03:00
Gaspar Capello
951c2d0de9 Fix 'cel.image = nil' is not allowed (fix #4514)
Now 'cel.image = nil' results in the cel remotion.
2024-12-09 12:05:40 -03:00
Gaspar Capello
f7a9f44cec Fix Magic Wand doesn't work correctly in Tiled Mode (fix #4659) 2024-12-06 09:45:30 -03:00
David Capello
77e0944baa Add more instructions about how to solve an incomplete cloned repo
Related to issues commented in #4562 and #4866
2024-12-05 10:16:55 -03:00
David Capello
97dc9c8988 [osx] Fix showing the native window back when the app is hidden (fix #4857) 2024-12-03 22:25:12 -03:00
Ryan Carsten Schmidt
2b97e44dfd Set ZLIB_FOUND ON rather than unset it
Fixes #4854
2024-12-03 07:27:41 -06:00
David Capello
f710603f99 Update SDK dirs of all CMakeFiles/*/*.cmake files too (#4773) 2024-12-02 00:19:24 -03:00
David Capello
0905e974cd Add option to update the MSVC cl.exe dir for all builds (#4773)
CMakeCache.txt and other files (rules.ninja, other .cmake files) save
the full path to the cl.exe binary, including the specific MSVC
version. We've added an option to update that specific version to
continue using all builds/configurations with the new updated path to
cl.exe.
2024-12-02 00:07:30 -03:00
David Capello
8241e03612 Fix clang-tidy-review action 2024-11-27 15:20:15 -03:00
David Capello
bf430fc3b9 Add missing #include to use LOG() when HAVE_CONFIG_H isn't defined 2024-11-25 15:40:47 -03:00
Martín Capello
45c2a59504 Change window visibility only when owns display
Before this the visibility was changed if the window pointed to a
display without taking into account that it might not own it. Fix #4805
2024-11-21 17:32:37 -03:00
Martín Capello
7038ab501e Call onOpen on parent class to fire Open signal
Fixes this issue:
https://community.aseprite.org/t/dialog-show-bounds-rectangle-is-broken-in-1-3-10/23917/1
2024-11-21 17:32:13 -03:00
David Capello
a7c8d4cb06 Update laf module 2024-11-19 15:56:32 -03:00
David Capello
59ff0d801a Add missing call to Widget::onVisible()
This is not necessary at the moment but just in case if in the future
we add a signal or Widget::onVisible() starts doing something.
2024-11-19 14:16:07 -03:00
Martín Capello
2e17f27237 Fix windows visibility when using multi-displays
Fix #4789
2024-11-19 14:14:53 -03:00
Martín Capello
f76bbcff67 Avoid clipping hidden windows (fix #4546) 2024-11-19 14:14:53 -03:00
David Capello
9eadd740b8 Disable tool changes when we're previewing a filter
In this way the user cannot use Ctrl key to try to move a cel and get
an error that the sprite is locked so we cannot move the cel. Actually
we shouldn't be able to move the cel when we're using the Editor for
preview purposes (FilterWindow / WindowWithHand).

This issue was reported in #4465, and created for the new
Dialog:show{hand=true} API mainly.
2024-11-19 14:05:13 -03:00
David Capello
21565a9349 [lua] Update scripting API version to 30 2024-11-19 13:15:27 -03:00
David Capello
4d7b28bfb6 Refactor removing duplicated code with new WindowWithHand
FilterWindow and DialogWindow (for scripts) share this code to enable
the Hand tool in the active Editor.
2024-11-19 13:04:57 -03:00
David Capello
699342fe9d Add function to copy non-shared properties between cels
At the moment it's the z-index, but if in the future we add new
non-shared properties, we can move those here.
2024-11-19 13:04:47 -03:00
David Capello
03361fdd07 [lua] Add app.editor.zoom / scroll properties (fix #4722) 2024-11-19 12:47:48 -03:00
David Capello
7ff124d108 Add HD icons 2024-11-15 19:02:57 -03:00
David Capello
6b85919534 [lua] Fix syntax/formatting and rename Dialog{move} param to "hand" (#4465) 2024-11-13 13:23:06 -03:00
lampysprites
d32fc4c704 [lua] add option to move canvas to foreground dialog 2024-11-13 13:10:07 -03:00
David Capello
a19a844498 Update comment about DocApi class 2024-11-13 10:07:33 -03:00
David Capello
1ec76afeaf Fix bug copying/moving cels with z-index (fix #4779) 2024-11-12 22:05:06 -03:00
Gaspar Capello
21e8e01951 Fix duplicate Sprite or Layer don't duplicate z-indexes (fix #4665)
Prior this fix, duplicating linked cels with different z-order
created linked cels with the same z-order in all linked set.
2024-11-12 12:08:16 -03:00
David Capello
b6f7cba09f Check submodules in build.sh 2024-11-11 13:06:42 -03:00
David Capello
051954c90e Remove third_party/gtest submodule as we use laf/third_party/googletest 2024-11-11 12:41:30 -03:00
David Capello
daf97d40a8 Add build scripts 2024-11-07 17:40:52 -03:00
David Capello
69dd28ca9c Replace std::snprintf() with fmt::format in ui::Alert 2024-11-07 17:16:24 -03:00
David Capello
1e5e06580d Update tinyexpr submodule 2024-11-07 17:16:03 -03:00