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

129 commits

Author SHA1 Message Date
CheetoHead 9a65960994 Import palette file dialog added 2019-12-18 09:43:11 -05:00
CheetoHead 18b9480a00 Merge branch 'master' into palette_updates 2019-12-17 19:49:28 -05:00
CheetoHead 3191e3f8c8 Add new palette updates 1 2019-12-17 19:49:20 -05:00
Hugo Locurcio 5d912d27f6
Simplify the Command key mask binding
`KEY_MASK_CMD` is automatically remapped by Godot to `KEY_MASK_CTRL`
or `KEY_MASK_META` depending on the OS.
2019-12-17 21:45:34 +01:00
OverloadedOrama 9289cb350d Replaced sub_key_mask with KEY_MASK_CTRL because it lead to a crash 2019-12-17 22:35:16 +02:00
Overloaded f3c77e30d0
Merge pull request #69 from AndreevAndrei/master
[hotkeys] Add cmd-key supporting for macOS, closes #67
2019-12-17 22:28:48 +02:00
Andreev Andrei 545aaf97c1 [hotkeys] Add cmd-key supporting for macOS, closes #67 2019-12-17 23:23:55 +03:00
OverloadedOrama 7dd67e7130 Put Traditional Chinese to Preferences and changes font when choosing Chinese 2019-12-17 19:52:09 +02:00
OverloadedOrama bfcb52a2f0 Put Russian in preferences & in Project Settings 2019-12-17 13:10:42 +02:00
Overloaded c32ad873a6
Merge branch 'master' into master 2019-12-17 13:02:41 +02:00
Andreev Andrei cda19952f5 [languages] Add Russian language, closes #63 2019-12-17 12:05:40 +03:00
OverloadedOrama 3a29a729e9 Re-added Polish in Preferences and in Main.gd's loaded_locales 2019-12-17 04:22:39 +02:00
Overloaded 329099fed4
Merge branch 'master' into palette_updates 2019-12-17 04:07:44 +02:00
OverloadedOrama c9071f30eb Changed brush color interpolation and LightenDarken amount's range from 0-100, instead of 0-1 2019-12-17 04:01:38 +02:00
CheetoHead b094c6595f Added edit palette menu and custom file saving 2019-12-16 20:23:18 -05:00
OverloadedOrama 0570fc7351 Moved color preview under color picker
This closes #53
2019-12-16 15:36:33 +02:00
OverloadedOrama 6c14a7d5e2 Fixed issue where the brush type select popup window chose brush type for the right tool instead of the left 2019-12-16 02:02:49 +02:00
OverloadedOrama ed42cdaef1 Fixed palette issue where, when you changed palette, you would still select colors from the Default palette
Also removed "pass" from the methods, since their purpose is to prevent errors from empty functions and they don't do anything else besides that.
2019-12-16 00:14:17 +02:00
Hugo Locurcio fd9bf26695
Darken the UI when exiting the application
This improves user experience a bit when quitting Pixelorama,
especially on slower hardware.
2019-12-15 21:47:32 +01:00
OverloadedOrama 396f32735c Fixed some translation issues 2019-12-15 17:40:38 +02:00
CheetoHead f2e858866e Added another palette option and got the selector button working 2019-12-15 00:06:04 -05:00
Hugo Locurcio c4ca26c013
Fix compatibility with Godot 3.1
This closes #35.
2019-12-14 23:21:55 +01: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 e157b33e1d Fixed bug where if Pixelorama started with Greek and went to English, the menu items would remain in Greek 2019-12-10 14:28:19 +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 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 ade2d05a1b Partial localization support - Greek Language
Also added a Preferences window, where the user can change Pixelorama's language. Note that the .csv's delimiter is Tab and not comma.
2019-12-07 17:45:48 +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 c35a8a6854 Added quit dialog
Works when quitting from the menu, when quitting by pressing the close ("X") button and on Alt-F4.
2019-12-04 19:16:18 +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 9102614a0c Tool options now hide and appear depending on selected tool
More tool options for the other tools, like bucket, should come soon. The PaintAllPixelsSameColor tool has been removed, as it will be implemented as an option for the bucket tool.
2019-12-03 18:36:28 +02:00
OverloadedOrama 70bd1dde43 Added show rulers & guides in the View menu 2019-12-03 02:30:38 +02:00
OverloadedOrama a2fdf7c4a5 Changed split screen button icon 2019-12-02 02:04:46 +02:00
OverloadedOrama bc1d16c14c Added color switch and defaults button
- Changed left and right color picker position in the UI
- Added a color switch button that switches the left & right colors
- Added a reset to default color button, that makes the left color black and the right white
2019-12-01 00:52:58 +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
OverloadedOrama 8132c8dcc5 Added hint_tooltip to file brushes
- File brushes now have their file name as their hint_tooltip.
- Changed horizontal & vertical ruler minor_subdivision to 4.
2019-11-25 18:56:53 +02:00
OverloadedOrama e940029979 Fixed crash when choosing "no loop" after looping with 1 frame
Before this commit, if you had one frame in the timeline and clicked the loop button until it went back to no loop WHILE the animation was playing, Pixelorama would crash. Now, if you're left with only one frame, Pixelorama will stop animating. Also updated the loop button's hint tooltip.
2019-11-24 00:52:17 +02:00
OverloadedOrama 36b462c30a Guides get saved in .pxo files 2019-11-23 22:20:03 +02:00
Hugo Locurcio 0ffb2a6cf9
Display the name of the currently open file in the window title
This also removes the version number from the window title,
as it can be seen in the About dialog.
2019-11-21 20:13:15 +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
Overloaded d70c1e5714
Merge pull request #19 from Calinou/remember-window-position-size
Remember the window position and size across restarts
2019-11-20 00:03:04 +02:00
Hugo Locurcio 199589924b
Remember the window position and size across restarts
This makes it more convenient to use Pixelorama, especially when using
multiple monitors.

The associated cache configuration file could be reused in the future
to store other kinds of "semi-persistent" data.
2019-11-19 22:37:01 +01:00
Hugo Locurcio cfeb4213f5
Implement fullscreen toggle by pressing F11 or Alt + Enter 2019-11-19 22:33:37 +01:00
OverloadedOrama 7318db30ab Major UI changes - including new icons!
- New UI icons for the tools, layer and frame buttons.
- Removed clone, remove and move frame buttons. You can now right click on a frame button to do these actions instead.
- Added first, previous, next and last frame buttons to the timeline.
- Added rulers for the main canvas viewport.
- Window size bumped to 1152x648.
- Default FPS is now 6 instead of 1.
- Fill tool renamed to Bucket.
- Mouse default cursor shape for the canvas is the arrow instead of cross.
- Mouse default cursor shape for the mirror and onion skinning buttons is the pointing hand.
2019-11-19 23:23:43 +02:00
OverloadedOrama d66c501b5c v0.4 - Undo/Redo, mirrored drawing, lighten/darken tool and more!
In this commit:
- Added notification labels that appear when the user does an action (for undoing, redoing and saving)
- Fixed symmetry with custom brushes.
- In Main.gd, current_save_path and current_export_path get cleared when the user creates a new drawing or opens one.

v0.4 of Pixelorama is out! Check https://functionoverload590613498.wordpress.com/2019/11/13/pixelorama-v0-4-is-out/ for the full changelog.
2019-11-13 15:45:55 +02:00
OverloadedOrama b1e8bde3ac Import brushes from folder
- A new type of custom brush has been added, brushes from files! Basically there's a "Brushes" folder where Pixelorama can get brushes from, and, unlike the previous brushes, these are for all projects and are not saved in .pxo files. These brushes get loaded on the _ready() method of Main.gd, and are ignored by Godot.
- There are now 2 containers for the two types of custom brushes. The main pixel brush is with the brushes from files.
- Fixed bug where, if you had selected a custom "project" brush and loaded a .pxo file, the brush would still be selected, causing potential problems
- Fixed bug where you could save a project brush that was completely transparent
- Fixed bug where, if you named a file, some shortcuts would be activated.
- export_presets.cfg is now ignored.
2019-11-11 04:20:09 +02:00
OverloadedOrama e825cc03e5 UndoRedo vol 10 - Add/Remove/Clone/Move Frames now have UndoRedo
- UndoRedo for Add/Remove/Clone/Move Frames
- Set functions for frame changes (both on canvases and Global.current_frame)
- Removed unneeded signal methods and put multiple signals on one method instead (for example, add and clone layer button signals both connect to add_layer())
- Fixed bug where, if you opened a .pxo file with multiple frames, the remove frame button would be disabled.
- Probably other small things that I'm forgetting to mention
2019-11-10 03:25:25 +02:00
OverloadedOrama ec7b2129ff UndoRedo vol 9 - Add/Remove/Clone/Move/Merge Layers now have UndoRedo 2019-11-07 00:12:40 +02:00
OverloadedOrama c535ec801a Rename layers, layers & frames are now toggle-able buttons 2019-11-06 18:39:23 +02:00
OverloadedOrama 79ceced483 WILL BREAK BACKWARDS COMPATIBILITY WITH .pxo FILES - Layer names get saved in .pxo files now 2019-11-06 00:08:57 +02:00
OverloadedOrama 40e0978b3f UndoRedo vol 8 - Draw while animating should now work with UndoRedo 2019-11-05 18:19:41 +02:00
OverloadedOrama 8bc0879814 UndoRedo vol 7 - New/Open/Import clear history, Crop has undo/redo
- New, Open and Import now clear undo/redo history
- Crop Image now has undo/redo
- Fixed bug where redo wasn't working properly in multiple frames

Found bug when drawing while animating - undo/redo isn't being registered properly.
2019-11-05 03:14:03 +02:00
OverloadedOrama 18d109f959 UndoRedo vol 6 - Scale Image now has undo/redo 2019-11-04 21:54:39 +02:00
OverloadedOrama 4ba2f3280a UndoRedo vol 5 - Added undo/redo for clear selection & flip h/v edit menu options
- Undo/redo for clear selection, flip horizontal & flip vertical
- Moved undo and redo on the top of the edit menu
2019-11-04 19:12:35 +02:00
OverloadedOrama 513637605c Merge branch 'master' of https://github.com/OverloadedOrama/Pixelorama 2019-10-29 23:25:00 +02:00
OverloadedOrama 7b8c6bbf00 UndoRedo - Unstable with bugs
Started working on UndoRedo. Currently works with basic drawing/erasing/bucket filling as well as the rectangle selection tool, custom brushes and copying/pasting.

May not work with multiple layers and frames and it does not work with the rest of the tools and buttons. Also does not work when pressing both mouse buttons at the same time, or when the cursor is outside the canvas when drawing.
2019-10-29 23:22:38 +02:00
Hugo Locurcio f407de234b
Remove trailing whitespace and ensure newlines at end of files 2019-10-25 16:39:09 +02:00
OverloadedOrama 2b64031786 Merge mirrored drawing and flip 2019-10-24 00:36:22 +03:00
OverloadedOrama 38377e1633 Mirrored drawing
- Mirrored drawing in horizontal, vertical or both axes.
- Fixed bug where the paint all pixels of the same color tool would affect other frames.
- Removed most of the parameters for draw_pixel() - replaced them with "current_mouse_button" instead.
2019-10-24 00:34:08 +03:00
OverloadedOrama c64c3408e8 Added two new tools, Paint all pixels of same color and lighten/darken
- Paint all pixels of same color tool added. Does what it says.
- Lighten/darken tool. It lightens by default, darkens when user is pressing Ctrl.
- Removed tool variables from main - stored everything in an array instead.
2019-10-23 02:54:29 +03:00
OverloadedOrama e18389d8c4 v0.3 - Custom brushes, rectangle selection and .pxo!
v0.3 of Pixelorama is out! Check https://functionoverload590613498.wordpress.com/2019/10/22/pixelorama-v0-3-is-out/ for the full changelog.
2019-10-22 14:27:07 +03:00
OverloadedOrama eb29cd3268 Brushes now get removed when opening a project, indicators for chosen sprites
- If you had custom brushes in your project and you opened a new one (from a .pxo file), the brushes would stack. Now, the previous brushes get removed.
- Added arrow left and right indicators for the selected brushes.
2019-10-02 21:58:19 +03:00
OverloadedOrama 7ff823f3a5 When a custom brush is selected, it now appears as an indicator at the cursor
Also moved blend_image_with_color() to Global and the custom brush image (resized & blended accordingly with the selected color and interpolation factor) is now updated every time something changes (size, color etc) and not every time you draw. This is not true for the eraser, however, as it must be blended with Color(0, 0, 0, 0)
2019-09-27 20:05:24 +03:00
OverloadedOrama 4e4a526332 Custom brushes, crop image, split screen, about menu & asset re-organizing
- Added support for custom brushes. When you Ctrl-C a selection, it gets added to the list of custom brushes. Each mouse button can have a different brush, and the user can choose whether their color comes from the brush itself or the selected color in the tool options. They can also be resized based on the selected brush size.
- Custom brushes are also being saved on .pxo files.
- You can now crop images (per frame). All layers of that frame are taken into account and are affected.
- Added split screen support. The user can toggle between single screen and split screen, where a second canvas is being shown. Note that you cannot draw on the second canvas.
- Added an About Pixelorama selection on the new Help menu.
- Project assets are re-organized.
2019-09-25 22:59:48 +03:00
OverloadedOrama 62b9278537 Selection can be moved outside the canvas
- Rectangle selection can be created and moved outside the canvas
- Added new View menu for Tile Mode and Show Grid.
- When creating a new canvas, you can now choose a color to fill your new image with
- FPS accepts values with up to 2 decimal points. SpinBox's step is changed from 1 to 0.01
- Fixed errors that occured when the user drew outside the canvas, caused by get_pixel()
- Fixed error that occured when the user was pasting an empty image
- Removed point_in_rectangle_equal() and new_canvas()
2019-09-19 00:10:23 +03:00
OverloadedOrama 2b710afd3b Added rectangle selection tool, copy & paste selection and Tile Mode
- New rectangle selection tool. Hold mouse button to create selection, release to finish it. You cannot draw outside of the selection.
- The selection can be moved around, and if Shift is pressed, selected content gets moved too. Currently cannot be moved outside the canvas.
- You can copy the selection with Ctrl + C, and paste it on a new selection with Ctrl + V.
- Added tile mode. Basically draws the canvas 8 more times in all directions.
2019-09-18 17:47:28 +03:00
OverloadedOrama f83e5b44f3 Merge branch 'master' of https://github.com/OverloadedOrama/Pixelorama 2019-09-14 22:58:28 +03:00
OverloadedOrama dd9bfc1c33 Added Onion Skinning & Custom .pxo File
- Onion skinning for animations. Choose past and future steps and toggle blue-red mode.
- Custom .pxo file. If you save your project as a .pxo file, it remembers all of your frames, their layers, brush sizes, brush colors and color palletes!
- Ping-pong loop type. When the animation finishes, it plays backwards.
- Ability to import new frames in the timeline as additions, without deleting the previous frames.
2019-09-14 22:55:33 +03:00
Hugo Locurcio cec04970d1
Define a minimum window size when supported
This prevents UI elements from collapsing when resizing the window.
2019-09-14 19:02:29 +02:00
OverloadedOrama 4331a0232e Changed current frame label
Current frame label now shows the current frame and the number of all frames. Also, when saving frames as multiple files, the count starts at 1 instead of 0.
2019-09-10 12:47:15 +03:00
OverloadedOrama 0058edbc4a Changed frame starting point from 0 to 1
Frame UI now start at 1 instead of 0. Also added a "Current frame:" label.
2019-09-10 02:30:43 +03:00
OverloadedOrama 5781c42821 v0.2 - Animation Timeline & UI changes!
v0.2 of Pixelorama is out!
- Added animation timeline. You can add. remove. clone and change order of your frames!
- You can now import multiple images as frames.
- Ability to save individual frames, all frames as multiple files, or all frames as a single file in the form of a horizontal or vertical spritesheet!
- Different frames can have a unique amount of layers and they can be of different sizes.
- Image scaling is now functional.
- Added hints for UI elements.
- A lot of UI changes.
2019-09-10 01:57:46 +03:00
OverloadedOrama 21397fefb2 Brush sizes and grid
- Changed UI layout
- The user can now change brush sizes for both left and right mouse buttons.
- A working grid - thanks to flurick!
2019-09-03 22:51:14 +03:00
OverloadedOrama f647a42752 Initial commit 2019-08-18 12:28:38 +03:00