Commit Graph

9620 Commits

Author SHA1 Message Date
David Capello
5e83ceb9a7 Update checkout GitHub action to avoid warning about deprecated node.js 16
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
2024-02-16 12:42:53 -03:00
David Capello
9be7c66376 Add possibility to paste as new file from clipboard on Home tab
Feature request:
https://community.aseprite.org/t/pasting-on-home-screen/21476
2024-02-16 12:40:00 -03:00
David Capello
a1b52fd64b Fix enabling commands when they need to write a document in certain cases (fix #4310)
In certain situations a script creating a transaction could run
certain commands (or functions running commands) that will ask if the
command is enabled before executing it (Command::executeCommand()).

ContextFlags::update() is the function that checks if we can upgrade a
reader lock to a writer, which means that we can write the
document. The new fix in laf's RWLock::canWriteLockFromRead() makes
this condition work correctly.
2024-02-16 12:18:55 -03:00
Gaspar Capello
243982ab78 Fix identify running Aseprite processes correctly to recover crashed sessions (related to #4130)
Prior to this fix, Aseprite was hiding some sessions to recover,
resulting in additional support for users.
To display available recovery sessions, Aseprite only checked if
the session belonged to any running process on the OS via the
'pid' number.
2024-02-15 12:10:09 -03:00
David Capello
14696de980 [lua] Update API version 2024-02-12 18:53:15 -03:00
David Capello
12623176bb Fix copying our en.ini file to strings.git clone 2024-02-12 16:55:31 -03:00
David Capello
749ea49185 Add link in About dialog to show the list of translators 2024-02-12 11:59:26 -03:00
Martín Capello
a7d4c23af9 Fix exporting one tag without "play subtags/repeats" and changing its anidir (fix #4297) 2024-02-09 17:31:25 -03:00
Gaspar Capello
45e74c7338 Fix HSV/HSL values on ColorSliders
Before this fix, the HSV and HSV values displayed in the ColorSliders were truncated rather than rounded to the nearest integer.
2024-02-08 19:16:08 -03:00
David Capello
d7dfe4b7fd Update laf module 2024-02-08 18:58:39 -03:00
David Capello
916b3bf26a Fix Steam screenshots (fix #4300)
Steam API/DLL now contains a SteamAPI_InitSafe() function for backward
compatibility similar to the old SteamAPI_Init(). The official
"steam_api.h" header file contains inline-defined functions for
SteamAPI_Init() and SteamAPI_InitEx() but both use the published
SteamInternal_SteamAPI_Init() function (we don't need it, I guess, so
SteamAPI_InitSafe() is enough for us).
2024-02-08 18:43:38 -03:00
David Capello
434c262489 Merge branch 'intuitive-opacity-values' (#1544, #4262) 2024-02-08 15:22:58 -03:00
Martín Capello
f7f2c56abf [lua] Fix tabs ID handling (fix #4268) 2024-02-08 10:55:46 -03:00
Martín Capello
9ef6c4848d Avoid exposing doc::frames types to the global namespace 2024-02-07 14:04:35 -03:00
Martín Capello
fdafc585c2 Adjust alpha color slider to make it work as percentage or value as specified by the preference settings 2024-02-07 13:33:09 -03:00
Martín Capello
b10390625f Introduce AlphaEntry class and make InkOpacityField extend from it (fix #1544) 2024-02-07 13:33:09 -03:00
Martín Capello
dd0e5addc9 Replace slider by opacityslider (fix #1544) 2024-02-07 13:33:09 -03:00
Martín Capello
04cf5eaa15 Introduce "alphaslider" and "opacityslider" controls. Use "opacityslider" in cel properties (fix #1544)
They work like a regular slider but use 0%-100% or 0-255 ranges depending on configuration settings.
2024-02-07 13:33:04 -03:00
David Capello
9318ce4941 Merge branch 'export-with-play-subtags' (#4173, #4211) 2024-02-07 11:58:28 -03:00
Gaspar Capello
e9706f106f Fix wrong edges on Brush Preview on Tilemap Mode (fix #4176) 2024-02-06 16:58:43 -03:00
Martín Capello
0c7759acf1 [lua] Fix how separators are added into dialog's tabs (fix #4288) 2024-02-06 16:27:24 -03:00
Gaspar Capello
024c266231 Fix deleting the "Pixel-perfect" checkbox from the "Spray Tool" (fix #4220) 2024-02-06 13:13:43 -03:00
Martín Capello
921504937c Fix Aseprite built-in file selector's file list layout to avoid horizontal scrolling (fix #4183) 2024-02-06 13:00:43 -03:00
David Capello
62599ad8b4 Fix assert in Widget::setMnemonic() for mnemonics like 'Ú'
This fixes the ASSERT((mnemonic & kMnemonicModifiersMask) == 0) in
Widget::setMnemonic() function, but as a future task we should try to
process/convert unicode chars like 'Ú' as a simplified form,
i.e. pressing 'u' should match 'ú' for mnemonics.
2024-02-06 09:38:14 -03:00
David Capello
af73adeab0 [i18n] Clone and add "strings" repo in "data/strings.git" to get updated translations
As we've moved all the translations to the strings
repo (06a852d1d4), to facilitate the
i18n work now we load translations from "data/strings" and from
"data/strings.git" folders, where "strings.git" is a clone of the
strings repo (https://github.com/aseprite/strings.git) in
"build/bin/data/strings.git".

This clone is executed automatically in the cmake configuration stage
so it's transparent for the developer and the result is like having
the translations available in the same "aseprite" repo.
2024-02-06 09:37:29 -03:00
Martín Capello
012da4da1b Add SelectedFrames.displace() tests 2024-02-02 17:53:09 -03:00
Martín Capello
982df4db1c Add FramesSequence tests 2024-02-02 17:53:09 -03:00
Martín Capello
eb45c4adf5 Add support to "play subtags & repetitions" when exporting an animation (fix #4173) 2024-02-02 17:52:58 -03:00
Martín Capello
a6556bb4f2 Fix exit frame handling for "PlayAll" playback mode
Without this when the playback cue is on the highest frame in "PlayAll"
mode it doesn't take into account the direction of the current tag that
is being played and assumes the end of the animation was reached
2024-02-02 17:52:58 -03:00
Martín Capello
0ae3a23066 Fix "ping-pong reverse" ordering of frames when exporting 2024-02-02 17:52:58 -03:00
Martín Capello
4d8fc12351 Adjust export dialog UI to support "Play Subtags & Repetitions" checkbox (fix #4173) 2024-02-02 17:52:42 -03:00
David Capello
5900605549 Fix "Too much data to uncompress" error recovering sessions (fix #4291)
This is due zlib returning Z_OK (instead of Z_STREAM_END) after
inflate() when all the output buffer was filled (avail_out = 0) but it
reports like there is still available uncompressed data (avail_in > 0).
It makes no sense but an extra inflate() call with avail_out=0
consumes the whole avail_in and the expected Z_STREAM_END is finally
reported.
2024-02-02 14:01:07 -03:00
David Capello
e0a677545e Show errors in UI when we cannot recover a specific file (related to #4291)
Internal:
Visible in: https://igarastudio.zendesk.com/agent/tickets/5772
With files from: https://igarastudio.zendesk.com/agent/tickets/5773
2024-02-02 12:49:55 -03:00
Martín Capello
799b3e1918 Add the user directory as the first path to search for the tags palette (fix #4182) 2024-02-01 10:27:11 -03:00
David Capello
40863a3a5e Copy hex text to native clipboard when copy colors from the palette (fix #4289) 2024-01-31 11:45:12 -03:00
Charlie-83
e47448ca24 Fix numerical errors in gradient tool (#4131) 2024-01-26 11:49:04 -03:00
David Capello
06a852d1d4 [i18n] Move all i18n work to https://github.com/aseprite/strings 2024-01-24 18:16:12 -03:00
David Capello
d4740394a9 [i18n] Update credits 2024-01-24 16:45:25 -03:00
Veydzher
b0025294a6 [i18n] Translate Ukrainian strings 2024-01-24 16:30:23 -03:00
doctor
f59b03e2c5 [i18n] Translate Irish strings 2024-01-24 16:30:23 -03:00
puddiCria
e1326d1ae3 [i18n] Translate Portuguese strings 2024-01-24 16:30:23 -03:00
peperoni
c96f7bc31c [i18n] Translate French strings 2024-01-24 16:30:23 -03:00
symegac
f2b5306121 [i18n] Translate Danish strings 2024-01-24 16:30:23 -03:00
Maks Dziemiańczuk
300166beca [i18n] Translate Polish strings 2024-01-24 16:30:22 -03:00
Aitornado _8
ac8429ab3b [i18n] Translate Spanish strings 2024-01-24 16:30:22 -03:00
David Capello
039244d0f7 [i18n] Translate Spanish strings 2024-01-24 16:30:22 -03:00
gallegonovato
83100ad6b7 [i18n] Translate Spanish strings 2024-01-24 16:30:22 -03:00
David Capello
bb1941a997 [i18n] Translate Spanish strings 2024-01-24 16:30:22 -03:00
gallegonovato
c983b8c884
[i18n] Translate Spanish strings 2024-01-24 20:24:12 +01:00
Martín Capello
d331195c4c Add "Alpha & Opacity" section to Preferences > Color (fix #1544) 2024-01-12 14:38:04 -03:00