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
Martín Capello
c1405e0d3a
Revert wrapping MouseEnter/Leave messages
...
Changes reverted to fix #4754
2024-11-06 18:13:06 -03:00
Martín Capello
cadd766671
Fix scaling of brush type icons ( fix #4386 )
2024-11-06 16:07:08 -03:00
Gaspar Capello
339221c288
Add support for jpeg image orientation adjustment ( fix #2525 )
2024-11-06 16:00:16 -03:00
David Capello
d073ecd9d1
Always show transformation preview on Preview window
...
Fix regression from cd5bf499ea
2024-11-06 15:40:39 -03:00
sharkboi
cd5bf499ea
Disable Brush Preview in Preview window by default ( fix #4721 , #4752 )
2024-11-06 15:40:29 -03:00
David Capello
5c62fd68de
Fix crash clicking "Hide Other Layers" when there is no preview window ( fix #4768 )
...
Clicking "View > Preview > Hide Other Layers" would try to access the
Preview editor when it's nullptr.
2024-11-06 09:00:29 -03:00
David Capello
0ace79f979
Update .gitsubmodule style
...
GitHub doesn't require this .git at the end of the URL but it's the
URL they gave in the "Clone" button when the HTTPS protocol is
selected. Just to keep all URLs consistent.
2024-11-05 15:25:17 -03:00
David Capello
cd2bb45da3
Update json11 module
2024-11-05 15:17:33 -03:00
David Capello
5a713448da
Noisy MSVC warnings are disabled with laf-base flags now
2024-11-05 11:59:18 -03:00
David Capello
c83dd16a43
Add TinyEXIF submodule
2024-10-28 18:40:23 -03:00
David Capello
35fcd94f04
Update laf ( fix #4740 )
2024-10-28 12:11:54 -03:00
Martín Capello
9667def753
Move kCallbackMessage logic to Widget
2024-10-23 23:09:28 -03:00
Martín Capello
cbac6f98a7
Fix MouseEnter and MouseLeave ( fix #4240 )
...
Callback messages were not being handled and since MouseEnter and
MouseLeave events were wrapped into CallbackMessages they were lost
and so never got called
2024-10-23 23:09:28 -03:00
دانتي باولا
85eb64ca35
Fix slice tool for tiles mode ( fix #4306 , #4705 )
2024-10-21 14:58:54 -03:00
David Capello
a7799b76fc
Add more tracing options to debug UI messages
...
Added REPORT_MOUSE/PAINT/TIMER_MESSAGES macros, and change _EVENTS to
_MESSAGES to avoid confusion with the current terminology.
The output string for each message was also simplified.
2024-10-17 19:23:52 -03:00
David Capello
71f6dbad28
Assert that we're in the UI thread in some ui::Manager functions
...
Simplify code removing DEBUG_UI_THREADS.
2024-10-17 15:30:18 -03:00
David Capello
a49bfe7f0a
Lua was still being compiled as C (instead of C++) when generating Visual Studio solutions
...
We're compiling Lua as C++, but it seems that target_compile_options()
doesn't work for Visual Studio solutions (only for Ninja/makefiles).
The proper cmake solution to this issue is using
set_source_files_properties() to specify C++ as the language to use to
compile all Lua C files. This generates a valid Visual Studio solution.
2024-10-11 15:05:18 -03:00
David Capello
11883a51ff
Disable Curl tests in compilation
...
This avoid creating a lot of testNNN projects inside the Visual Studio
solution generated by cmake.
2024-10-11 14:59:37 -03:00
Liebranca
0a45319e06
Fix cursor alignment and implement pivot point
2024-10-09 21:49:35 -03:00
Liebranca
dca06a53c0
Cap scaling to grid size
2024-10-09 21:49:35 -03:00
Liebranca
d6ddaa7a27
Snap cels to grid on moving cel action ( fix #4027 )
2024-10-09 21:49:35 -03:00
David Capello
384813421c
[lua] Update scripting API version to 29
...
This should have been changed for v1.3.9.
2024-10-06 20:41:08 -03:00
Gaspar Capello
ff520c14d2
Fix transparency issue with new color criterias ( fix #4686 )
...
Prior to this fix, the following particular conditions caused
an incorrect conversion of an opaque color to a transparent color
during RGBA->Indexed conversion:
- RGBA image with black color (#000000 a=255) painted on the canvas
- The black color is absent from the palette.
- The mask color is present in the palette
- Converts the sprite to indexed color mode using
Sprite > Color Mode > More Options
- Select Advanced Options, select a Color Best Fit Criteria other than
Default (for example CIELAB) and press OK
- The original black color becomes the mask color.
2024-10-04 10:37:28 -03:00
David Capello
e5faac07b5
Fix regression breaking linked cels on "Merge Down" ( fix #4685 )
2024-10-03 12:43:26 -03:00
Christian Kaiser
a975873f7a
Fix Sentry wrapper compilation
2024-09-24 11:30:59 -03:00
David Capello
4e2488534f
Don't show GPU checkbox in preferences dialog
...
This option is only available in ENABLE_DEVMODE, regression from
31c80a5e0c
.
2024-09-23 15:04:11 -03:00
David Capello
c697a8767b
Update laf module
2024-09-23 13:46:13 -03:00
Christian Kaiser
96438b789e
WebP show_alert reset in options
2024-09-23 13:38:14 -03:00