1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 17:49:47 +00:00
Commit graph

143 commits

Author SHA1 Message Date
OverloadedOrama 768a1e7b8f Added Patterns for the bucket tool
The bucket tool can now use Patterns instead of colors to fill areas. They get loaded from the "Patterns" folder, similar to how Brushes and Palletes work. You can no longer use brushes for the bucket tool.
2020-04-25 00:42:02 +03:00
OverloadedOrama 09d2265056 Made Unlink Cel work with UndoRedo 2020-04-21 21:34:45 +03:00
OverloadedOrama 79a4c0232e Minor TransparentChecker performance boost
Got rid of its _process, using _ready() instead. It also gets called when the canvas size changes, or the checker settings in the preferences change.
2020-04-20 19:12:22 +03:00
OverloadedOrama b21455cfd0 Minor guide and rulers performance boost
Got rid of their _process methods, Guides have input instead, and the rulers get updated when the camera zoom or offset change.
2020-04-20 18:52:05 +03:00
Kinwailo 2ae67cdb76 Improve the checker board of transparent background 2020-04-18 15:03:18 +08:00
OverloadedOrama 954b6111c2 Cloned frames are now automatically part of the tag
The tags don't work with UndoRedo yet, so this is not final behavior
2020-04-17 04:59:23 +03:00
OverloadedOrama 699dfbe091 Cleaned adjust_hsv in Canvas.gd a bit
Removed duplicate code & made it faster for selections
2020-04-17 04:35:47 +03:00
OverloadedOrama 4068330e26 Improved "Fit to Frame" button
Also set the default mode for the right zoom tool to zoom out.
2020-04-16 18:34:57 +03:00
luiq54 8fdeb63778 Fix minor bugs and cleanup 2020-04-15 15:19:29 +05:30
luiq54 cb051239dc Added Previews and Better Saturation/Value Lerping 2020-04-14 16:21:35 +05:30
luiq54 2b8796aacc Added HSV Adjust Dialog 2020-04-13 20:49:28 +05:30
OverloadedOrama 4c38467014 Don't do undo/redo on the zoom tool 2020-04-13 15:25:50 +03:00
OverloadedOrama 21dd3f2e2d Added a zoom tool
Makes it easier to zoom for people with tablets and touch screens in general
2020-04-13 05:07:52 +03:00
OverloadedOrama 1963d99e45 Fixed issue where custom brushes were sometimes not being drawn 2020-04-03 16:13:49 +03:00
OverloadedOrama e072b95727 Pattern filling - Partially addresses #130
If the user chooses a brush that is not the pixel or a circle brush and uses the bucket tool, the brush image is used as a pattern that fills the area.
2020-03-28 05:15:09 +02:00
OverloadedOrama 07db587b6c Timeline UI changes
The onion skinning button replaces the old onion skinning area of the timeline, but there's no way right now to change the settings. This will be added in a future commit. More UI changes will soon follow.
2020-03-26 20:56:30 +02:00
OverloadedOrama b7b3d1d924 Actually link the images - changes that happen to one linked cell happen to another
Also fixed a a crash in FrameButton.gd
2020-03-18 03:24:15 +02:00
OverloadedOrama 7d12f1fccc Backend implementation of an isometric grid
An attempt to draw an isometric grid. It behaves oddly on non-square canvas sizes, and on some grid sizes. For this reason, I'm not sure if it will be implemented in v0.7.

To test it, set Global.grid_type = Global.Grid_Types.ISOMETRIC
2020-03-12 04:17:48 +02:00
OverloadedOrama 7a008cfc3f Implemented locking/unlocking layers
When a layer is locked, no changes can be made to it.
2020-03-09 03:26:13 +02:00
OverloadedOrama f02afbe371 Removed legacy get_layer_container() from Canvas.gd 2020-03-09 03:18:27 +02:00
OverloadedOrama 1e5c674673 Fixed spacing between some comments 2020-03-09 02:17:49 +02:00
OverloadedOrama a9c57d27e5 Removed frame_changed method from Canvas.gd 2020-03-08 22:03:31 +02:00
OverloadedOrama 2a5dfa7ea2 The selected cel (?) is now pressed, based on current layer and frame
All the other buttons are pressed = false. Also removed some legacy code.
2020-03-07 16:43:26 +02:00
OverloadedOrama 24818bfaea Cloning frames works 2020-03-07 16:43:26 +02:00
OverloadedOrama 120e47d0f9 Add/remove/move frames should now work
With Undo/Redo. Cloning frames doesn't work yet, will fix shortly.
2020-03-07 16:43:25 +02:00
OverloadedOrama 24e9eda644 Fixed crash where the cursor was failing to load
The issue still exists though, but instead of crashing, the cursor just doesn't change. Probably a Godot bug?
2020-03-07 16:43:24 +02:00
OverloadedOrama 4e31c1ed4b Changing layer order works again
Started using a setter method for Global.current_layer
2020-03-07 16:43:24 +02:00
OverloadedOrama 18356d4408 UndoRedo and Image effects work per layer
Basically just replaced Global.canvas.current_layer_index with Global.current_layer
2020-03-07 16:43:23 +02:00
OverloadedOrama 37621477c8 Hide invisible layers in onion skinning 2020-03-07 16:43:20 +02:00
OverloadedOrama 6e713988d3 Fix Canvas.gd problems 2020-03-07 16:43:20 +02:00
OverloadedOrama 953d002d91 [EXPERIMENTAL] Re-making the timeline
Trying to merge layers into the timeline, and eventually add more features like "share layer with all frames", among others. THIS IS NOT FINISHED, IT WILL *NOT* WORK PROPERLY. Once it is finished, this branch will be merged onto master.

So far only add layer and add frame work, and even they may have some issues. Undoing also does not work properly yet.

The UI is also not finished, as it currently has problems with the scroll containers.
2020-03-07 16:43:17 +02:00
OverloadedOrama 4ea56363bf Don't store the same pixels in Canvas.gd again and again 2020-02-14 18:05:53 +02:00
OverloadedOrama f3759d677e Load the image of the cursor once
This should fix some rare crashes as well
2020-02-12 00:38:35 +02:00
OverloadedOrama d1793c2e60 Fix bug with undo and drawing after motion draw, again
If you did motion drawing, stopped and then went to draw to the frame the motion drawing started, undo wouldn't work properly. That's because can_undo was false.
2020-02-11 20:05:37 +02:00
OverloadedOrama 2531aa7b65 Affect already painted pixels on the same mouse press, if the pen pressure is higher than it used to
And fixed bug with undo and drawing after motion draw
2020-02-11 18:42:23 +02:00
OverloadedOrama 17f623c769 Blend all color channels when the color alpha is less than 1
Along with the alpha blending that already was added some commits ago
2020-02-11 03:45:05 +02:00
OverloadedOrama 8ff917111c Changes to better follow GDScript style guide
Nothing new is being added in this commit, just code re-ordering & re-naming to better follow the recommended GDScript style guide.
http://docs.godotengine.org/en/3.2/getting_started/scripting/gdscript/gdscript_styleguide.html

And

https://www.gdquest.com/docs/guidelines/best-practices/godot-gdscript/
2020-02-11 00:06:24 +02:00
OverloadedOrama 5fe4b74a39 New alpha blend behavior now works on circle brushes 2020-02-10 02:39:36 +02:00
OverloadedOrama f28a3a4405 Basic tablet pen pressure sensitivity, brush alpha now gets blended
Instead of replacing the pixels with the new color's alpha value, the alpha values of the selected color and the current pixel color get blended together. This means that, if you have a pixel with 50% alpha and you draw a color over it with 25% alpha, the final result will have 75% alpha, instead of 25% as it used to be.

The pressure sensitivity is still experimental and may not work properly. Works only with Godot 3.2 and above.

draw_pixel() has also been renamed to draw_brush()
2020-02-09 01:34:37 +02:00
OverloadedOrama 808883b3a5 Restore freehand drawing on motion drawing 2020-01-16 01:38:44 +02:00
OverloadedOrama 1353db92d1 Don't execute Canvas' _input() method if it's not the selected frame
Canvas.gd's _input() method returns when the canvas' frame is not the currently selected frame. Saves a little bit of performance and fixes some issues like the line angles of ALL frames being drawn, and might fix some crashes I had with motion drawing and undo/redoing.
2020-01-15 22:47:56 +02:00
OverloadedOrama bac3fdcad6 Canvas Line2D doesn't get freed and re-created
Make Line2D have the same position for both of its points so it's invisible when the user is not making a straight line
2020-01-15 22:31:02 +02:00
henlo-birb 6fa41000ed added option to hide tool icons next to cursor 2020-01-12 20:41:17 -05:00
OverloadedOrama 542f709a8f Fixed issue where undo/redo was not working properly for straight lines that went outside the canvas 2020-01-13 01:11:03 +02:00
OverloadedOrama ff758467dd Fixed a rare crash with straight lines
It was possible that the variable `is_making_line` could be true, even if the line itself has been freed from memory.
2020-01-12 22:43:07 +02:00
OverloadedOrama 5562d3f2d5 LightenDarken tool no longer affects transparent pixels 2020-01-12 02:34:47 +02:00
OverloadedOrama 50fa262a75 Put default image width and height to 64, made minor changes in the About dialog and in the Chinese translation 2020-01-11 00:29:29 +02:00
Manolis Papadeas 8b4c42a576
Merge pull request #118 from Gaarco/master
Add preference options for the Image: default width, default height, default fill color and their translation strings
2020-01-11 00:21:35 +02:00
Manolis Papadeas 6dfa3ac9b7
Fixed issue where the size wouldn't change if the user modified only the width or the height 2020-01-11 00:08:24 +02:00
OverloadedOrama 5cce9d3180 Changes to the tool options UI
New option for the color picker tool (closes #115 - also includes new translatable strings), VSplitContainer for the tools and their options and a ScrollContainer for the tool options.
2020-01-10 22:44:29 +02:00