Manolis Papadeas
43bd054df6
Update translations
...
Hopefully the final translations for 0.9?
2021-06-30 00:01:39 +03:00
Manolis Papadeas
c71d371c8c
Change shortcuts of the new tools
2021-06-28 21:52:45 +03:00
Manolis Papadeas
21e2cd6bd0
Dragging and dropping frames to re-arrange them no longer makes selected_cels empty
2021-06-27 18:15:06 +03:00
Manolis Papadeas
98d41fca14
Remove Global.find_node_by_name()
...
Use the built-in find_node() method instead.
2021-06-26 14:01:07 +03:00
Manolis Papadeas
e4aff633bb
Change "Current cel" strings to "Selected cels"
...
Because now we have the ability to select multiple cels
2021-06-25 17:58:41 +03:00
Manolis Papadeas
02278e5fee
Fix crash when importing a new project on an empty project
2021-06-24 20:32:30 +03:00
Manolis Papadeas
f5d07e660d
Do not clear content from selection in selected cels when moving if Alt has been pressed beforehand
...
This is about Alt + mouse click when moving a selection. See https://github.com/Orama-Interactive/Pixelorama/issues/129#issuecomment-756799706 for more info
2021-06-23 20:38:17 +03:00
Manolis Papadeas
5b74a4292d
Fix pasting not working properly on multiple selected cels
2021-06-22 01:46:52 +03:00
Manolis Papadeas
db0799bc12
Added Ukrainian
2021-06-21 00:24:39 +03:00
Manolis Papadeas
ac631e3e3d
Transform selected content of multiple selected cels
...
Does not work with rotation. It might be a good idea to replace this whole system with one that uses a transformation matrix, to handle rotation and skewing more easily in the future. I'm not a huge fan of this current code.
2021-06-19 19:29:32 +03:00
Laurenz Reinthaler
a899d2591d
Use CMD+Shift+H for showing the pixel grid on OSX ( #494 )
...
Co-authored-by: Laurenz Reinthaler <reinthalerlaurenz@gmail.com>
2021-06-15 13:03:19 -07:00
Manolis Papadeas
18592ed7c0
Minor UI changes
2021-06-15 01:03:46 +03:00
Manolis Papadeas
79b37a95b3
Fix palette importing not including all colors if they have more than 64 colors
2021-06-14 20:38:46 +03:00
Manolis Papadeas
791e966a71
Update Previews on all mouse events
2021-06-14 19:21:58 +03:00
Manolis Papadeas
bdd06d42ce
Added tool button size option in the Preferences
2021-06-14 02:14:31 +03:00
Manolis Papadeas
20f5a063fd
Get palette colors from all selected cels
2021-06-13 18:27:48 +03:00
Manolis Papadeas
de850ce8a1
Ability to select multiple cels and edit them all at once
...
A rather significant change, so, while I have tested it, it might still be buggy. Implements a part of #306 .
2021-06-12 01:06:13 +03:00
Manolis Papadeas
73cce5b740
Set frame delay's min value at 0.01, does not let it become 0
2021-06-11 22:56:38 +03:00
Manolis Papadeas
feece75935
Added Norwegian Bokmål
2021-06-11 19:38:34 +03:00
Manolis Papadeas
88e95ce35f
Very minor code cleanup in 4 tools
2021-06-09 17:31:58 +03:00
Manolis Papadeas
f1ea8e30b2
Fix animation tag spacing
2021-06-09 17:17:53 +03:00
Manolis Papadeas
fd8b6b7385
Don't call Project.frame_changed() twice at the beginning
2021-06-07 20:05:50 +03:00
Manolis Papadeas
e9bf310934
Implement layer and frame dragging and dropping to re-arrange them in the timeline
...
Part of #306
2021-06-06 02:19:34 +03:00
Manolis Papadeas
1a87321437
Added a Delete option in cel's right click menu
...
Delete doesn't actually delete a cel, it just clears its contents. Maybe renaming it to something else would be a good idea.
2021-06-05 13:38:32 +03:00
Manolis Papadeas
e7a5b45536
Clicking on a layer button now selects the layer. Double clicking it allows renaming
2021-06-05 03:06:07 +03:00
Manolis Papadeas
ecd08ce132
Add a right click popup menu on the frame buttons and move most of the frame related options there
...
These options used to be on the right click popup menu of the cel buttons. Now, cel options only contain Link/Unlink Cel, for now.
2021-06-05 02:37:33 +03:00
Manolis Papadeas
39b0baca84
Frame numbers in the timeline above the cels are now clickable buttons
2021-06-05 02:11:22 +03:00
Manolis Papadeas
a4c9e0e8dd
Use AutoInvertColors shader for the cursor tool icons
2021-06-05 02:01:04 +03:00
Manolis Papadeas
a67855a7f2
Fix RestoreDefaultButton having an alpha value of 0.5
2021-06-04 22:13:48 +03:00
Manolis Papadeas
ec1b29eb5e
Let the user change icon colors regardless of theme
2021-06-04 21:44:05 +03:00
Manolis Papadeas
12ce12a292
Replace button icons with single-color textures that change color automatically depending on the theme
...
There is no longer any need for having specific graphics for each theme, as white colored textures can change their modulation to any color.
2021-06-03 22:42:08 +03:00
Manolis Papadeas
fd45344e6b
Escape cancels polygon selection making
2021-06-02 03:33:19 +03:00
Manolis Papadeas
489749e305
Fix division by zero crash
2021-06-01 18:43:23 +03:00
Manolis Papadeas
5e1c9dc73b
Fix bug where you couldn't resize the selection after pasting
2021-06-01 18:19:16 +03:00
Manolis Papadeas
64e9d14a0e
Use Texture resources instead of Image for tool cursor icons
2021-05-31 21:39:33 +03:00
Manolis Papadeas
ed229565ad
Resize selection with gizmo from center by holding Control after clicking
2021-05-31 03:04:10 +03:00
Manolis Papadeas
2a9420700b
Fix image effect preview background not keeping its aspect ratio
2021-05-30 19:20:56 +03:00
Manolis Papadeas
207b3a5630
Update ShaderEffect.gd
2021-05-30 17:42:50 +03:00
Manolis Papadeas
43e733fe65
Fix Move tool's snap to grid movement and take grid offset into account
2021-05-28 17:43:50 +03:00
Manolis Papadeas
6d2f02b782
Let the user change border color and toggle the marching ants effect in the preferences
2021-05-28 03:46:16 +03:00
Manolis Papadeas
5a93af7477
Fix palette highlight not being shown over the selected swatch
2021-05-27 03:14:19 +03:00
Manolis Papadeas
1e6460e439
Keep colors of a palette if the width gets bigger and the height gets smaller
2021-05-26 15:48:26 +03:00
Manolis Papadeas
bd84fbbe39
Rename the Lighten/Darken tool to Shading tool
2021-05-26 02:17:49 +03:00
Manolis Papadeas
bd085786d5
Fixed issue when pasting and the clipboard image is empty
2021-05-25 22:50:35 +03:00
Manolis Papadeas
a77cc05446
Made brush creation from selection a separate menu option
...
Also works with Ctrl+B. Copying no longer creates a project brush.
2021-05-25 22:48:37 +03:00
Manolis Papadeas
950f075269
Fix resizing palette issue
...
Having one dimension less than 8 and one higher than 8 caused issues. This should now be fixed.
2021-05-25 14:24:30 +03:00
Manolis Papadeas
4e8acdf002
Updated Translations.pot and some tool hint tooltips
2021-05-25 02:51:10 +03:00
Variable
0257adb97b
Set project name ( #490 )
...
* Set project name. Also fixed a bug
Added ability to set project name also fixed a bug that "if the aspect ratio button is pressed and a template of different width and height were selected, then the button also applied on them e.g a template of (but it shouldn't)"
Example: write 1 in width, 2 in height, enable aspect ratio, and then try to change template... a template of 256x240 will give 120x240
* Add files via upload
* Adjust save name to project name
* Add files via upload
2021-05-24 07:03:56 -07:00
Variable
62dc608eea
"Fill inside" option in pencil tool ( #489 )
...
I modified some code from "EIRTeam/Pixelorama" and merged it with pencil tool.
2021-05-23 14:58:19 -07:00
Manolis Papadeas
1b286a95ab
Optimize AutoInvertColors shader
...
Not sure if that single if statement counts as branching code, but it's generally a good idea to avoid if statements in shader code, so I used step instead.
2021-05-22 16:08:11 +03:00
Igor Santarek
c5d1e3b52b
Fix for #341 . :) ( #488 )
2021-05-21 15:55:06 -07:00
Manolis Papadeas
5b6f4ebe3e
Added Polygon selection tool
...
Cursor icon is temporary. It works by clicking multiple times on the places you want to create edges, and to complete the polygon you either have to click at the first edge (if you hover the mouse, a circle appears in that position), or you can auto-fill by double clicking.
2021-05-18 01:56:55 +03:00
Manolis Papadeas
de649c2057
Simplified AutoInvertColors shader
2021-05-17 03:08:25 +03:00
Manolis Papadeas
6499c0d3d5
Auto invert preview colors based on the screen color
...
Basically, when the background color of the screen at certain points is dark, the preview at that spot is white, and when it is bright, the preview is white at that spot. This helps to keep the previews always distinguishable, regardless of the background color.
2021-05-17 02:24:49 +03:00
Manolis Papadeas
61e7633365
Optimize Lasso tool's draw_preview()
...
Do not have it run when we're not creating a selection
2021-05-16 18:55:34 +03:00
Manolis Papadeas
b8d055fe01
Added lasso / free select tool
...
Temporary icon, probably. Should work without problems, but more testing would be nice.
2021-05-16 03:52:13 +03:00
Manolis Papadeas
909f9480cc
Correct rectangular and elliptical selection mirroring
2021-05-16 03:19:49 +03:00
Manolis Papadeas
d13c5c1063
Added ellipse selection tool
...
Icons most likely temporary. A bit problematic when the selection is in negative coords and the preview does not work well with mirroring and mirror view. Same is true for the shape tools.
2021-05-14 03:48:33 +03:00
Manolis Papadeas
6b9f860618
Fix brushes being drawn flipped horizontally
...
My bad!
2021-05-13 21:50:55 +03:00
Manolis Papadeas
b28e89e5c4
Users can now resize the left tool bar
...
Useful since the number of tools has started to grow a lot, and some monitors may not have enough vertical space for all of them.
2021-05-13 01:15:11 +03:00
Manolis Papadeas
336594272c
Fix selection resizing issue after having moved the content first
2021-05-12 16:27:35 +03:00
Manolis Papadeas
1827381439
Remove unnecessary image.lock() lines
2021-05-12 15:51:31 +03:00
Manolis Papadeas
e8b36bbc61
Fix symmetry guide crash when opening pxo files
...
Related to the PoolVectorArray locking issue (#331 ). This still doesn't fix the issue itself, but at least Pixelorama does not crash anymore. It is still possible, though, to fail to load a guide when opening a project. Opening it again may solve the issue.
2021-05-12 15:35:20 +03:00
Manolis Papadeas
99ce07b3ab
Added a new line tool
...
One of the most requested tools has finally been added!
2021-05-12 04:35:20 +03:00
Manolis Papadeas
36652c6b56
Update a palette string
2021-05-11 21:03:11 +03:00
Manolis Papadeas
9e7de0022e
Change strings of the select menu
2021-05-11 19:48:16 +03:00
Manolis Papadeas
0b9eb2bbed
Change the project's name before saving the pxo file
2021-05-11 14:51:14 +03:00
Manolis Papadeas
1b80100588
Stop movement if content transformation has been confirmed while content is being moved
2021-05-11 04:41:30 +03:00
Manolis Papadeas
969b096efc
Alt + mouse click when resizing with gizmos now works as intended when there is an active transformation occurring
2021-05-11 04:15:42 +03:00
Manolis Papadeas
47e83d7163
Added UndoRedo support for selection transformations for tool options and fixed resize content behavior
2021-05-11 00:27:57 +03:00
Manolis Papadeas
c859834f7c
Fix crash when deleting a frame or layer and there is a transformation occurring
2021-05-10 22:34:40 +03:00
Manolis Papadeas
24da4bd703
Fix selection resizing not keeping the original bitmap after gizmo release
2021-05-10 19:59:55 +03:00
Manolis Papadeas
e86dde2fb5
Do not require confirmation when transforming a selection with invisible contents
2021-05-10 18:44:12 +03:00
Variable
729c3ae1af
Tall wide screen corrections ( #478 )
...
* a minor visibility change.
made the nodes that were not needed in wide-screen "Invicible"
the visibility will now be controlled procedurally
* Added some lines of code in "change_ui_layout()"
The added lines will control node visibility changes to adjust to current screen mode
* added a line to fix tall-screen "zen-mode"
2021-05-10 08:05:15 -07:00
Manolis Papadeas
70d5fad9fd
Make selection tool options not editable when there is no selection
2021-05-09 00:56:23 +03:00
Manolis Papadeas
6adb01aac1
Cursor shape no longer changes when a gizmo is being dragged and the mouse cursor goes above another gizmo
2021-05-08 16:06:02 +03:00
Manolis Papadeas
9b54f8a387
Resize selection without contents if Alt is pressed before clicking on a gizmo
2021-05-08 03:54:32 +03:00
Manolis Papadeas
3876c97674
Resizing gizmos with Shift keeps the aspect ratio of the selection
...
This was harder to implement than I thought. It may need some more testing.
2021-05-08 03:40:28 +03:00
Manolis Papadeas
356ddc0038
Implement moving selections with arrow keys
...
Moves selection with contents by default.
Control + arrow keys = Moves & snaps selection to grid.
Alt + arrow keys = Moves the selection itself without the contents.
2021-05-07 04:33:28 +03:00
Manolis Papadeas
e75b6e7d67
Made Rectangle Selection and Magic Wand tools work with symmetry
2021-05-04 21:26:04 +03:00
Manolis Papadeas
ea8bfcd25d
Remove drawn_rect from Selection.gd and use draw_preview() in RectSelect.gd instead
2021-05-04 19:26:06 +03:00
Manolis Papadeas
5f84629144
Update AboutDialog.gd
2021-05-04 13:57:40 +03:00
Manolis Papadeas
3db2673309
Prepare for v0.8.3-stable
2021-05-04 13:44:06 +03:00
Manolis Papadeas
6203b3a71c
Minor UI changes in the tool options of shape tools
2021-05-04 13:26:07 +03:00
Manolis Papadeas
0ba940c886
Implement snap to grid while moving selections and using the Move tool
...
Mouse click + Ctrl to snap to grid while moving.
2021-05-04 02:45:14 +03:00
Manolis Papadeas
7cbbf4399d
Implement Alt + mouse movement to quickly copy & move selection contents without cutting them from their original position
2021-05-03 21:10:49 +03:00
Manolis Papadeas
20275fc465
Snap movement to axis by holding Shift after mouse clicking
...
Works with the Move tool and with the Selection tools.
2021-05-03 18:33:51 +03:00
Manolis Papadeas
0a35615c24
Added a displace origin option to Rectangle, Ellipse and Rectangle Selection tools
...
Works with Mouse Click + Alt. Needs to be documented in the tooltips.
2021-05-03 03:11:12 +03:00
Manolis Papadeas
8f846fe04a
Fix out of bounds errors with selection intersection
2021-05-03 03:09:32 +03:00
Manolis Papadeas
3ad3697c84
Fix issue with gizmos not working if the user has moved the selection with contents first
2021-05-03 02:08:53 +03:00
Manolis Papadeas
8f1c6bb3d3
Move selection with contents by default with all selection tools
...
Now, if you want to move the selection itself without its contents, you have to do Ctrl + Alt + Mouse click. Works the same with all selection tools.
2021-05-03 02:00:07 +03:00
Manolis Papadeas
4a1fcc4ca7
Add position and size as selection tool options
...
This allows the user to easily move and resize selections
2021-05-01 03:10:23 +03:00
Manolis Papadeas
0b3424be80
Make selection tool scenes inherit from SelectionTool.tscn
...
Useful for them to be able to share common tool options
2021-04-28 04:00:40 +03:00
Manolis Papadeas
708a1ddc20
Organize the selection tool files in a new folder
2021-04-28 03:06:03 +03:00
Manolis Papadeas
b3d581bad4
Create a parent SelectTool script where all selection tools extend from
2021-04-28 02:57:48 +03:00
Manolis Papadeas
a7cec3424a
Restore project brush creation when copying
2021-04-24 14:50:36 +03:00
Manolis Papadeas
320c538bc3
Add enter and escape as input actions
2021-04-23 23:47:42 +03:00
Manolis Papadeas
afd7cc43c9
Rename move_content methods to transform_content
2021-04-23 23:37:07 +03:00
Manolis Papadeas
83d9800fc1
Fix selection being moved by one pixel when being resized & temp_rect has negative size
2021-04-23 19:18:41 +03:00
Manolis Papadeas
4412671a08
Add selection intersection with Ctrl + Shift + Mouse click
2021-04-22 18:12:45 +03:00