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

80 commits

Author SHA1 Message Date
OverloadedOrama d6a199c53f Added a new brush type - Filled Circle
Filled Circle brush is just like the Circle brush, but filled. Issue is, when drawing while moving the mouse, some pixels remain unfilled.

Also added some more file brushes.
2019-12-27 22:02:47 +02:00
OverloadedOrama 86761c92ec Layers stay invisible when adding/removing/moving a new layer 2019-12-27 20:24:44 +02:00
OverloadedOrama 42e3aec561 Fixed issue where Shift and Ctrl weren't working with straight lines on Canvas.gd 2019-12-27 17:38:43 +02:00
Overloaded 080676ac83
Merge pull request #96 from Calinou/fix-gdscript-warnings
Fix GDScript warnings pertaining to unused arguments
2019-12-27 17:19:03 +02:00
Hugo Locurcio 02c76cfd14
Don't call update() in the canvas on non-mouse input events
This partially addresses #85.
2019-12-27 16:16:20 +01:00
Hugo Locurcio 386473845e
Fix GDScript warnings pertaining to unused arguments
Those warnings can be ignored by prefixing the argument with an
underscore.
2019-12-27 16:14:01 +01:00
OverloadedOrama fec657efc8 Fixed bug with random brushes, they were being resized forever while the user was drawing 2019-12-27 00:00:20 +02:00
OverloadedOrama 3a20b3e073 Added a new brush type - Random Brushes
They're like File brushes, but each time you draw, expect to see something different!

To make a random brush, just put the images you want in the same folder (under the main Brushes folder of course), and make sure their filename starts with "%".

I also changed _process() to _input() in Canvas.gd, so there may be some unexpected behavior.
2019-12-26 21:36:56 +02:00
OverloadedOrama d4b42534bb Added sliders for brush size & 2 new custom brushes
Also, in Canvas.gd's _draw() method, draw_set_transform() is called again after the circle brush drawings, to reset the transform to its default state.
2019-12-25 21:17:29 +02:00
OverloadedOrama 06e0d74c14 Added proper circle brush - Bresenham's Circle Algorithm
The circle's radius is the brush's size. Respects image/selection boundaries, works with mirror. A special plot_circle() method is found on Global, to calculate the rectangles used by the mouse cursor/position indicator.
2019-12-25 20:27:25 +02:00
OverloadedOrama d3ff1e984b Added diagonal outlines, changed paint all pixels of the same color to respect selection 2019-12-25 02:53:45 +02:00
OverloadedOrama ed2e757c11 Layer Opacity - Change alpha of each layer
Added a slider under the layer add/remove/etc buttons that changes the currently selected layer's transparency. It gets saved in .png and .pxo files, while respecting non-opaque pixels in the image too. Which means, their alpha values aren't being overwritten.
2019-12-24 23:51:08 +02:00
OverloadedOrama c6ded721d1 Canvas transparent background changes on dark & gold themes
It's also in Global.gd instead of Canvas.gd
2019-12-21 04:56:48 +02:00
OverloadedOrama 69392ff34b Constrained angles on straight lines while pressing Ctrl 2019-12-19 15:50:41 +02:00
OverloadedOrama a76bfcef48 Straight lines now paint the target pixel too
They also start at the middle of the pixel, rather than the last mouse position in general
2019-12-19 03:38:14 +02:00
OverloadedOrama 91b21a52f5 Angle between last drawn pixel and line is now appearing on the top when drawing a straight line
Also straight lines work with LightenDarken now, and moved the Seconds Timeline a bit to the left
2019-12-19 03:15:23 +02:00
OverloadedOrama 6220ad82bc Frame number labels change color when selected 2019-12-18 00:53:06 +02:00
Overloaded f97818d134
Merge branch 'master' into line-tool 2019-12-15 17:49:47 +02:00
Subhang Nanduri 632a0c8dd3 Fix for crashes that occur when using selection tool and line tool 2019-12-15 10:19:58 -05:00
OverloadedOrama 00ef80e932 Fixed problem with drawing and filling gaps, created "shift" in Input Map
previous_mouse_pos is now used for regular drawing, while previous_mouse_pos_for_lines is used for straight lines
2019-12-15 14:07:28 +02:00
OverloadedOrama f3ab5960ba Imported German translation in the Project Settings 2019-12-15 13:44:53 +02:00
Subhang Nanduri 40dfe544d8 Changed line tool so it activates by pressing shift after last draw 2019-12-15 02:09:14 -05:00
OverloadedOrama 87cddbce06 Fixed LightenDarken drawing bugs 2019-12-11 02:47:54 +02:00
OverloadedOrama 719d29526f Updated custom tool cursors & changed rectangle selection tool
- Also fixed a small translation bug with the menu items, for real this time
- Fixed a bug with the brush color not being updated when using the custom color picker tool
- The pixel indicators only appear for Pencil, Eraser and LightenDarken tools
- Small UI margin changes.
2019-12-11 01:00:26 +02:00
OverloadedOrama 1bd8ec4ae0 Added 2 small sprites below the cursor for the selected tools
Instead of having a tool icon as a cursor for the left tool only
2019-12-10 19:56:16 +02:00
OverloadedOrama 704dcf90c0 Retain the zoom factor when adding a new frame
Also, when importing a PNG, the window title changes.
2019-12-09 01:39:59 +02:00
OverloadedOrama 31a67fcbc2 Fixed preview camera zooming issues on large images 2019-12-09 00:17:05 +02:00
OverloadedOrama 2a086a41d8 Custom canvas images for all tools 2019-12-08 03:32:58 +02:00
OverloadedOrama bf4052ad84 Full Greek support and minor UI changes
Everything should now be translated in Greek. Will update if I have forgotten anything. Also made some changes to the layer and frame button colors and layer position.
2019-12-08 03:12:34 +02:00
OverloadedOrama d81d7ee5ef Grid size and color in preferences, update_texture optimization
- Added grid size and color in preferences
- Canvas' update_texture() updates the frame button's texture only when the user releases a mouse button. This should optimize drawing in large images.
- Cursor is no longer invisible inside the canvas
- Minor UI changes
- Added some more translations. This is going to be a common thing in commits from now on.
2019-12-07 19:34:54 +02:00
OverloadedOrama 2369243cfc Merging layer & saving sprite now uses custom blend_rect method
Also added CameraMovement.gd to the preview window camera and fixed a cursor problem where it always remained as the default arrow cursor outside the canvas
2019-12-07 01:08:23 +02:00
OverloadedOrama 5613c3d7ef Overall code re-organizing & layer renaming changes
- When renaming a layer, the line edit grabs the focus. If enter is pressed, it gets invisible. Also fixed positioning and size
- Re-organized the variables in Global, now they are less messy and randomly placed
- Layer, frame & brush textures stretch mode has been changed to Keep Aspect Centered
2019-12-06 01:48:29 +02:00
OverloadedOrama da61234b13 Added custom cursor images for bucket & color picker
- Custom cursor images for bucket & color picker, only when mapped to the left button
- Cursor is now invisible when the left chosen tool is anything but bucket, color picker and rectangle select.
- Improved and added more hint tooltips.
2019-12-06 00:27:47 +02:00
OverloadedOrama 340af88eb4 Added a mini-canvas preview window 2019-12-05 16:49:27 +02:00
OverloadedOrama 8b913553aa Fixed bug when drawing custom brushes
Added a src_rect parameter to blend_rect()
2019-12-05 01:38:10 +02:00
OverloadedOrama 5f72e970c6 Added a custom color picker tool, which allows you to select a color from the canvas 2019-12-04 17:22:21 +02:00
OverloadedOrama dd60f0fc7e Added lighten/darken option and amount for the LightenDarken tool
You don't use Ctrl anymore to switch between Lighten and Darken
2019-12-04 01:01:37 +02:00
OverloadedOrama 700f287edc Added fill area option for the bucket tool - this restores the old "paint all pixels of the same color" tool's functionality 2019-12-04 00:14:14 +02:00
OverloadedOrama 532f6c75ed Custom brush appears as cursor only in Pencil and Eraser tools 2019-12-03 21:51:13 +02:00
azagaya ea09dfddfb Added custom blend function to workarround godot's blend rect issue 2019-12-03 12:53:42 -03:00
azagaya d246df042a Another attemt to workarround flood_fill bug 2019-11-30 09:26:58 -03:00
OverloadedOrama f10bf4c96f Possible fix of #10 - thanks azagaya! 2019-11-30 03:22:56 +02:00
OverloadedOrama 3312b8064f Removed left and right brush arrows
- Removed left and right brush arrow indicators completely.
- Fixed bug when removing custom project brushes.
2019-11-30 02:45:45 +02:00
OverloadedOrama 4721a01f2e More UI changes
- Left tool options is now on top of the right tool options.
- Brushes have been removed from the right panel, and have instead become a popup that appears when you press one of the brush type buttons, to choose a brush. The indicators will be removed.
2019-11-30 00:41:34 +02:00
azagaya 70dfd856fe Don't draw blue rectangle arround selected pixel when picking color 2019-11-29 11:13:11 -03:00
OverloadedOrama d027923a0e Fixed bug when using a non-pixel brush with Lighten/Darken
If you selected a non-pixel brush with Lighten/Darken, it acted like a regular pencil. Now, no matter what brush you have selected, L/D only works as a pixel brush.
2019-11-27 01:13:02 +02:00
Hugo Locurcio 9bdc0e16b6
Improve the status bar display
- Display zoom as a percentage, to be more in line with other
  2D editing applications.
- Increase spacing between labels.
- Use the Unicode multiplication sign.
2019-11-21 18:10:03 +01:00
OverloadedOrama 224316256c Added guides
- Added horizontal & vertical guides which can be dragged from their respective rulers
- Fixed bug when opening and importing files
2019-11-21 00:11:21 +02:00
OverloadedOrama d44b31b5a8 Merge pull request #20 with previous commit 2019-11-20 14:42:52 +02:00
OverloadedOrama e895e82a95 Added a seconds ruler for the timeline & changed brushes position 2019-11-20 14:41:02 +02:00