adityarana14
6283d69707
[Script] Added support for mousecursor and still supporting mouseCursor
...
Added the support for both "mousecursor" and "mouseCursor"
2025-09-04 10:51:49 -03:00
David Capello
002356ce19
[lua] Avoid accessing nullptr parent display at exit ( #5384 )
2025-08-27 15:26:31 -03:00
David Capello
983b07383f
[lua] Fix default autofit for a Dialog() when autofit is not specified ( #5176 / #5321 )
2025-08-26 11:23:48 -03:00
Christian Kaiser
74953174d6
[lua] Added `autofit` and `sizeHint` properties to Dialog ( fix #5176 )
2025-08-26 11:05:06 -03:00
Christian Kaiser
eaa2bdf0af
[lua] Process mnemonics consistently for plugins ( fix #5250 )
2025-08-04 15:58:29 -03:00
Christian Kaiser
4bb9239f50
[lua] Add `resizeable` property to Dialog constructor ( fix #5177 )
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled
Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled
Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled
Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled
Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled
Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled
Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled
Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled
Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled
Details
2025-08-01 18:57:50 -03:00
Maplegecko
698d79b049
[lua] Make Dialog:separator more in line with other widgets ( fix #4989 )
2025-06-09 13:26:39 -03:00
David Capello
f1b6dd8594
[lua] Fix regression overwriting path specified in Dialog:file{filename} ( fix #5061 )
...
If no 'basepath' is specified and the 'filename' argument has a path,
we must use that path as 'basepath' to keep backward compatibility
with the previous behavior of Dialog:file{}.
2025-05-22 14:39:36 -03:00
Liebranca
57fe1e40a9
Add 'basepath' string option to 'Dialog:file{}'
...
Allows the user to specify which folder the filename is relative to.
2025-01-14 12:52:31 -03:00
Liebranca
f1d03b12c5
Move 'OutputFile' logic to FilenameField class
2025-01-13 13:54:55 -03:00
David Capello
09538f9a1a
clang-format all files
2024-12-16 14:52:19 -03:00
David Capello
ae9e3583a4
Merge branch 'main' into beta
2024-11-21 19:09:50 -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
84f3101681
[win] Use WinTab/tablet pressure only for certain windows ( #3358 )
...
Windows that need tablet information are the MainWindow, DynamicsPopup,
and scripts Dialog.
2024-11-21 17:23:50 -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
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
bf0a47545c
Remove #if/endif ENABLE_UI conditional directives ( fix #4619 )
...
This was originated for #1279 (CLI-only Aseprite) which can be
achieved with LAF_BACKEND=none anyway.
In this way we simplify the development process, and checking for the
availability of the GUI can be done in run-time through App::isGui()
or Context::isUIAvailable().
2024-09-02 23:16:26 -03:00
Martín Capello
f7f2c56abf
[lua] Fix tabs ID handling ( fix #4268 )
2024-02-08 10:55:46 -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
8226e5285a
Fix Dialog.bounds doesn't work as expected ( fix #3898 )
...
Prior to this fix, the 'Dialog:show()' function overrode bounds when
they were defined before the 'show' command.
2023-11-22 18:22:20 -03:00
Martín Capello
26523156da
Improve script engine's exception handling
...
More details about the implications of this change can be found
in https://github.com/aseprite/aseprite/pull/4057
2023-10-26 11:24:51 -03:00
Martín Capello
ba99f41d82
[lua] Add "focus", "enabled", and "visible" common properties to tabs
2023-09-19 14:53:47 -03:00
Martín Capello
815366d385
[lua] Add support to modify tabs buttons via Dialog:modify
2023-09-12 17:21:00 -03:00
Martín Capello
6010748f81
[lua] Add tabs onclick and ontabchange events support
2023-09-12 17:21:00 -03:00
Martín Capello
d21f47f827
[lua] Add selected tab retrieval/selection through Dialog's data and possibility to set the tabs selector at the bottom
2023-09-12 17:21:00 -03:00
David Capello
702a7d5265
[lua] Rename Dialog:canvas{ autoScaling -> autoscaling } ( fix #4011 )
2023-08-21 21:10:51 -03:00
Martín Capello
115e20d2a5
Add tab widget to lua api
2023-08-14 18:08:33 -03:00
David Capello
9755efece4
Add note to remove duplicated code incorporated in aebb370906
2023-08-14 18:06:55 -03:00
Martín Capello
aebb370906
Add autoscrollbars feature to Lua API Dialog:show function
2023-08-14 18:04:24 -03:00
Martín Capello
0958573cac
Add canvas autoScaling feature ( fix #3748 )
2023-04-27 11:07:26 -03:00
Martín Capello
961dc46066
Avoid dialog's window relayout during an ongoing window's size change
2023-03-28 14:09:03 -03:00
Martín Capello
5fb0b72c73
Fix hexpand and vexpand setting
2023-03-28 13:54:02 -03:00
David Capello
af9f7288ee
[lua] Add 'ondblclick' event for canvas widget
2023-03-27 14:22:10 -03:00
David Capello
b7770f5fac
[lua] Add KeyEvent.repeatCount ( fix aseprite/api#95 )
...
As "repeat" is a keyword on Lua, it makes things complicated.
2023-03-16 14:55:30 -03:00
David Capello
33c92dd218
Fix some warnings
...
- Added missing override
- Removed some unused captures for lambdas
- Removed some unused local/member variables
2023-02-28 13:05:02 -03:00
David Capello
cef84ad113
[lua] Fix regression, Dialog() must create a window with titlebar
...
Added a new Dialog{ notitlebar=true } parameter to avoid showing a
title bar explicitly. So we can continue using Dialog() to create
dialogs with the default "Script" title.
Regression introduced in 453d9c2168
2023-02-22 18:17:26 -03:00
David Capello
5953e93402
[lua] Add possibility to display a Dialog as a popup menu
...
* Added new Dialog:menuItem{} widget
* Added Dialog:showMenu{} function
2023-01-12 11:09:05 -03:00
David Capello
39d1fb56d4
Remove ui::Event& args from ui::Button::Click signal
...
This is to simplify code and to match ui::MenuItem::Click and
ui::Button::Click signals (so then we can write some generic code
using Button::Click or MenuItem::Click).
2023-01-12 11:00:16 -03:00
David Capello
453d9c2168
[lua] Add possibility to create dialogs without titlebar
2023-01-11 09:46:21 -03:00
David Capello
f5a79ce3b8
[lua] Add possibility to specify parent dialog
2023-01-11 09:38:19 -03:00
David Capello
7ede783926
[lua] Add key modifiers to mouse and touch messages on canvas widget
2023-01-05 16:14:00 -03:00
David Capello
17825921e0
[lua] Add onkeydown/onkeyup events to canvas widget
2023-01-04 14:40:10 -03:00
David Capello
1830e5343f
[lua] Add onwheel and ontouchmagnify events to Dialog:canvas()
2022-12-29 15:12:15 -03:00
David Capello
a6a7519178
[lua] Add possibility to modify the mouseCursor of a canvas
2022-12-26 15:33:14 -03:00
David Capello
d4cefb8ba6
Fix crash double clicking a Dialog:canvas()
...
There were missing some setRecipient() when some messages are
converted to other kind of message (e.g. DoubleClick -> MouseDown)
2022-12-15 19:29:28 -03:00
David Capello
8b390d56fd
[lua] Fix mouse position to client coordinates on mouse events
2022-12-15 16:21:24 -03:00
David Capello
0aaa9fdddf
[lua] Add onmousemove/down/up events to canvas widget
...
At the moment very basic properties were added to the received event:
x, y, and button.
2022-12-14 22:13:49 -03:00
David Capello
25682a44d8
[lua] Add Dialog:repaint() function
2022-12-14 21:17:51 -03:00
David Capello
2cb526a19b
[lua] Add new GraphicsContext type for Canvas onpaint event
...
We include a simple initial API for the GraphicsContext (like
stroking/filling rectangles and images).
2022-12-14 18:59:44 -03:00