David Capello
6e84bb5443
[lua] Ask for permission to open a WebSocket from scripts
2021-10-07 19:37:10 -03:00
David Capello
b9241e6d91
Refactor ask_access() with ResourceType argument
2021-10-07 19:34:40 -03:00
David Capello
4cd137a639
[lua] Add Image.rowStride property now that Image.bytes is available
...
We need to know the specific rowStride to be able to set a proper
Image.bytes (bytes size = Image.height * Image.rowStride).
2021-10-07 19:10:27 -03:00
David Capello
cd342f5630
[lua] Add events handling with Sprite.events & App.events
...
Added a new Events object with :on() and :off() methods to start or
stop listening to a specific event respectively. This also allows to
add several callbacks for the same event.
Replaced the temporal Site.onChange & Sprite.onChange implementations.
Related to several issues (enable more possibilities for): #138 , #1403 , #1949 , #2965 , #2980
2021-10-07 18:56:39 -03:00
David Capello
0249275f8c
[lua] Change MessageType to WebSocketMessageType
...
Just in case to avoid collision or confusion with some kind of future
MessageType (e.g. ui::MessageType). There are no plans for this, but
we prefer to use WebSocket* prefix.
2021-10-06 19:33:09 -03:00
David Capello
327b38a05d
Wrap MESSAGE_TYPE_BINARY with parenthesis (...)
2021-10-06 19:29:19 -03:00
David Capello
0ca411690b
Remove trailing whitespaces
2021-10-06 19:17:10 -03:00
David Capello
c117b1b01f
Simplify Image_set_bytes(): as bytes_size == bytes_needed we don't need to call std::min()
2021-10-06 19:16:51 -03:00
David Capello
b6d7c1e261
Avoid error running cmake when entering IXWebSocket subdirectory
...
I don't know why it fails, but it looks like the commands specified to
install the IXWebSocket library are problematic. (And anyway we don't
want to install the library after the compilation process.)
2021-10-04 18:07:28 -03:00
David Capello
f8dabfa294
Use portable memcpy instead of memcpy_s
2021-10-04 18:07:20 -03:00
lampysprites
2628afdfce
Remove unneeded Sprite.__gc
2021-10-04 23:15:55 +07:00
lampysprites
bf53fa26cd
Make onChange callbacks more predictable
2021-10-04 12:17:25 +07:00
lampysprites
a90853f765
Extend WebSocket API
2021-10-03 12:52:37 +07:00
lampysprites
4354be1d7a
Add CMake option to disable websockets
2021-10-03 12:40:29 +07:00
lampysprites
711741a358
Remove unneeded lua stack pops
2021-10-03 02:22:15 +07:00
lampysprites
28595a410d
Clean up sprite observers on lua GC
2021-10-02 22:10:25 +07:00
lampysprites
83c03a3158
Expose site observer to lua API
2021-10-02 20:09:35 +07:00
lampysprites
2aa3fdbd95
Execute websocket callbacks in the ui thread
2021-10-02 18:34:17 +07:00
lampysprites
22e3e6244a
Simplify user API for Sprite observers
2021-10-02 16:22:31 +07:00
lampysprites
f8ef06a86e
Lua API Image:bytes - convert lua Image to data string and back
2021-10-02 14:40:28 +07:00
lampysprites
b0f10ee276
Add Websocket client API
2021-10-02 13:57:51 +07:00
lampysprites
e6aeee6400
Add IXWEbSocket library
2021-09-30 13:13:43 +07:00
lampysprites
85f3164e21
Expose DocObserver to the scripts
2021-09-29 22:39:01 +07:00
David Capello
364f62ee4a
Merge branch 'sentry' ( fix #2857 )
2021-09-23 21:09:27 -03:00
David Capello
f07dc53d83
Use our anonymous UUID to identify Sentry users
2021-09-23 21:06:19 -03:00
David Capello
c6c1393402
Show consent to share crash data only when there are something to share
2021-09-23 20:40:02 -03:00
David Capello
8512ea6f98
Add Sentry license
2021-09-23 19:47:21 -03:00
David Capello
18bebeaba8
Minor fix in share crash data tooltip
2021-09-23 19:41:40 -03:00
David Capello
f6322a1373
Don't show "Aseprite is up to date" when there is no new version
2021-09-23 15:27:09 -03:00
David Capello
0c604ca4ba
Ask for consent to share crash data
2021-09-23 15:22:26 -03:00
David Capello
6cafec8d06
Move Sentry class impl to a .cpp file
2021-09-23 12:55:30 -03:00
David Capello
515952cf32
Enable Fill/Stroke commands when !ENABLE_UI
2021-09-23 09:18:14 -03:00
David Capello
9fe3e40c6a
Fix cloning tests/beta when testing aseprite/beta
2021-09-23 08:42:01 -03:00
David Capello
024cd73f62
Change location for crash data (e.g. %AppData%/Aseprite/crashdb)
2021-09-22 19:48:44 -03:00
David Capello
8b215235c7
Minor fix for app-lib flags in CMakeLists.txt file
2021-09-22 18:34:23 -03:00
Gaspar Capello
83c18399a4
Fix incorrect cropping rectangle calculation in canvas size command in lua script
...
Prior to this fix, CanvasSize command via lua script results in bad canvas and image clipping.
2021-09-22 17:40:29 -03:00
David Capello
911589111e
Add Sentry as an alternative to handling minidumps manually ( #2857 )
2021-09-21 11:29:48 -03:00
David Capello
f687ddef72
Update laf module
2021-09-16 18:50:06 -03:00
David Capello
eb53829629
Clone tests beta branch when running actions for Aseprite beta branch
2021-09-13 10:45:17 -03:00
David Capello
7d248c33d7
Fix initialization order of base class and member variable in ui::CloseEvent class
...
Fixed clang warning: field 'm_canceled' will be initialized after base 'ui::Event'
2021-09-06 18:00:56 -03:00
Martín Capello
495623d6b2
Add support to "visible" attribute
2021-09-06 13:58:19 -03:00
Martín Capello
05dfd75743
Add cancelation support to CloseEvent
2021-09-06 13:57:57 -03:00
Martín Capello
e6d0c1858a
Add <image> tag support
2021-09-06 13:53:02 -03:00
Joshua Ogunyinka
3da532453c
Fixed issue regarding when color index of a pixel is bigger than the palette size
2021-09-02 16:56:39 +04:00
David Capello
013792a215
Don't access preferences from background thread and check current_editor existence
...
Related to #2874 and ac31ee35c0
2021-09-01 12:11:02 -03:00
David Capello
6341fcee23
Add missing #include to use current_editor
2021-09-01 12:02:29 -03:00
Robert Rüdiger
ac31ee35c0
Fix translucent backgrounds in color selection
2021-09-01 12:01:59 -03:00
David Capello
4c6835c439
Merge branch 'cyclic-change-color-2'
2021-09-01 10:40:32 -03:00
David Capello
845f275ae7
Enable cycling colors when palette size=1 so RGB/HSV colors are converted to index=0 anyway
...
In this way after ChangeColor command to increase/decrease an index is
used, we always got an index selected (even index=0 if palette size=1)
2021-09-01 10:38:35 -03:00
Jeremy Behreandt
edb9f89456
Cyclic Color Change in Palettes
...
Made Change Color: Increment/Decrement Foreground/Background methods cyclic instead of clamped. At last palette element, incrementing selected color returns to first element. At first palette element, decrementing color returns to last element.
2021-08-31 01:10:18 -05:00