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
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
97dc9c8988
[osx] Fix showing the native window back when the app is hidden ( fix #4857 )
2024-12-03 22:25:12 -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
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
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
69dd28ca9c
Replace std::snprintf() with fmt::format in ui::Alert
2024-11-07 17:16:24 -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 cd5bf499eab932061b10a8f0a22d6781e099c909
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
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
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
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