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

1014 commits

Author SHA1 Message Date
Darshan Phaldesai 49b61db891
Added the ability to draw on Tiling Mode Previews (#259)
Also added hovering brush preview for same
2020-06-09 21:13:34 +03:00
OverloadedOrama 76af8a3214 Change paths in the open/save dialogs when switching project 2020-06-09 20:19:55 +03:00
OverloadedOrama 58bab65518 Implemented zen mode
When zen mode is on, most parts of the UI are invisible, except the drawing canvas and  the top menu bar.
2020-06-09 19:15:25 +03:00
OverloadedOrama d76b24b029 Removed unnecessary code from CreateNewImage.gd 2020-06-09 19:02:09 +03:00
OverloadedOrama 8118381b0b Fixed issue where new images had the size of the previous project 2020-06-09 18:44:08 +03:00
Manolis Papadeas 66feec8f21
Update README.md 2020-06-08 23:48:31 +03:00
OverloadedOrama 01ce3a3932 When opening a project and the current tab is empty, open it in that tab
If the current project is empty (only 1 layer and frame, no tags and the image has no content - is invisible) and the user is opening a project, then the opened project will not open a new tab of its own, and will use the currently opened one instead.
2020-06-07 01:48:35 +03:00
OverloadedOrama d38a6efe9b Move save paths when repositioning tabs
Change path position in the arrays when repositioning tabs
2020-06-06 13:06:50 +03:00
OverloadedOrama 5fda35c2d8 Fixed issues with saving and backups 2020-06-06 02:52:17 +03:00
OverloadedOrama 709a401373 Save backups for all opened projects
current_save_paths and backup_save_paths in OpenSave.gd are arrays now, have paths for every project
2020-06-06 02:16:53 +03:00
OverloadedOrama 2c409ab025 Camera zoom and offset are now project properites
The zoom/offset of the three cameras now get saved in each project, and change when you change project.
2020-06-05 21:03:34 +03:00
OverloadedOrama 9ffce37c0b An asterisk is added to the tab name if there are changes
The window title also changes when switching tabs. And yes, "has_changed_changed" is a stupid method name, I'll find another one sometime later.
2020-06-05 20:15:40 +03:00
OverloadedOrama 6d87901056 Imported image files now open in an new tab
Keep in mind that opening an image file as a new frame might not work properly yet, if the target image has a different size.
2020-06-05 19:51:06 +03:00
OverloadedOrama 1b1c7f844f .pxo files now get opened in a new tab 2020-06-05 18:54:11 +03:00
OverloadedOrama 7a61f1ea4a Fixed issue where the wrong amount of cels were being created
The new image's frames had as many cels as the previously selected project
2020-06-05 18:19:05 +03:00
OverloadedOrama d37b07db5d Reposition tabs is now functional
That was easier than I expected
2020-06-05 17:55:41 +03:00
OverloadedOrama b276999b12 Closing tabs is now possible 2020-06-05 17:50:52 +03:00
OverloadedOrama 4af130bc61 Project brushes change when switching projects
A new Global.file_brushes array is used for the file brushes, and the Project class has its own brushes array for the project brushes
2020-06-05 17:21:35 +03:00
OverloadedOrama 736521246d Change guides when switching project 2020-06-05 16:21:19 +03:00
OverloadedOrama fc03e83377 Change the selection rectangle when switching projects 2020-06-05 16:14:57 +03:00
OverloadedOrama 35969b2f67 Moved the _min and _max variables to Project.gd 2020-06-05 16:06:59 +03:00
OverloadedOrama 60126e46d3 New image now creates a new tab/project 2020-06-05 04:30:50 +03:00
OverloadedOrama ae381a8714 Change canvas and timeline when a tab is being pressed 2020-06-05 04:30:31 +03:00
OverloadedOrama 709a6d470e Added basic UI for tabs 2020-06-05 02:48:38 +03:00
Manolis Papadeas 2e69e1a8c2
Merge pull request #257 from Orama-Interactive/refactoring
Last refactoring merge
2020-06-05 02:23:59 +03:00
OverloadedOrama a3d6b849f1 Create .gdignore files in Misc and pixelorama directories
Because we don't want them included in Godot's file system.
2020-06-05 01:46:16 +03:00
OverloadedOrama 83916f8913 Fixed json crash and text issue in EditPalettePopup
Importing a non-palette json file no longer crashes the app. Enabled autowrap for a label in EditPalettePopup because some translated text were pushing the boundaries of the dialog window.
2020-06-05 01:40:21 +03:00
Manolis Papadeas 802f423067
New Crowdin translations (#235)
* New translations Translations.pot (French)

* New translations Translations.pot (French)

* New translations Translations.pot (Dutch)

* New translations Translations.pot (French)

* New translations Translations.pot (French)

* New translations Translations.pot (French)

* New translations Translations.pot (French)

* New translations Translations.pot (French)

* New translations Translations.pot (French)

* New translations Translations.pot (Czech)

* New translations Translations.pot (Czech)

* New translations Translations.pot (Portuguese, Brazilian)

* New translations Translations.pot (Portuguese, Brazilian)

* New translations Translations.pot (Portuguese, Brazilian)

* New translations Translations.pot (French)

* New translations Translations.pot (Catalan)

* New translations Translations.pot (Ukrainian)

* New translations Translations.pot (Turkish)

* New translations Translations.pot (Swedish)

* New translations Translations.pot (Serbian (Cyrillic))

* New translations Translations.pot (Portuguese)

* New translations Translations.pot (Norwegian)

* New translations Translations.pot (Dutch)

* New translations Translations.pot (Korean)

* New translations Translations.pot (Hungarian)

* New translations Translations.pot (Hebrew)

* New translations Translations.pot (Finnish)

* New translations Translations.pot (Danish)

* New translations Translations.pot (Czech)

* New translations Translations.pot (Arabic)

* New translations Translations.pot (Spanish)

* New translations Translations.pot (Afrikaans)

* New translations Translations.pot (Romanian)

* New translations Translations.pot (Esperanto)

* New translations Translations.pot (Latvian)

* New translations Translations.pot (Indonesian)

* New translations Translations.pot (Portuguese, Brazilian)

* New translations Translations.pot (Chinese Traditional)

* New translations Translations.pot (Chinese Simplified)

* New translations Translations.pot (Russian)

* New translations Translations.pot (Polish)

* New translations Translations.pot (Japanese)

* New translations Translations.pot (Italian)

* New translations Translations.pot (Greek)

* New translations Translations.pot (German)

* New translations Translations.pot (Vietnamese)

* New translations Translations.pot (Italian)

* New translations Translations.pot (Polish)

* New translations Translations.pot (Russian)

* New translations Translations.pot (Chinese Simplified)

* New translations Translations.pot (Chinese Simplified)

* New translations Translations.pot (German)

* New translations Translations.pot (Dutch)

* New translations Translations.pot (Esperanto)

* New translations Translations.pot (Esperanto)

* New translations Translations.pot (Esperanto)

* New translations Translations.pot (Esperanto)

* New translations Translations.pot (Esperanto)

* New translations Translations.pot (Esperanto)

* New translations Translations.pot (Esperanto)

* New translations Translations.pot (Turkish)

* New translations Translations.pot (Turkish)

* New translations Translations.pot (French)

* New translations Translations.pot (Catalan)

* New translations Translations.pot (Ukrainian)

* New translations Translations.pot (Turkish)

* New translations Translations.pot (Swedish)

* New translations Translations.pot (Serbian (Cyrillic))

* New translations Translations.pot (Portuguese)

* New translations Translations.pot (Norwegian)

* New translations Translations.pot (Dutch)

* New translations Translations.pot (Korean)

* New translations Translations.pot (Hungarian)

* New translations Translations.pot (Hebrew)

* New translations Translations.pot (Finnish)

* New translations Translations.pot (Danish)

* New translations Translations.pot (Czech)

* New translations Translations.pot (Arabic)

* New translations Translations.pot (Spanish)

* New translations Translations.pot (Afrikaans)

* New translations Translations.pot (Romanian)

* New translations Translations.pot (Esperanto)

* New translations Translations.pot (Latvian)

* New translations Translations.pot (Indonesian)

* New translations Translations.pot (Portuguese, Brazilian)

* New translations Translations.pot (Chinese Traditional)

* New translations Translations.pot (Chinese Simplified)

* New translations Translations.pot (Russian)

* New translations Translations.pot (Polish)

* New translations Translations.pot (Japanese)

* New translations Translations.pot (Italian)

* New translations Translations.pot (Greek)

* New translations Translations.pot (German)

* New translations Translations.pot (Vietnamese)

* New translations Translations.pot (Greek)

* New translations Translations.pot (Greek)
2020-06-05 01:21:12 +03:00
Manolis Papadeas 356bd0665b
Added more contributors and donors in AboutDialog 2020-06-05 00:33:45 +03:00
OverloadedOrama f9bd590d20 Moved size variable from Canvas.gd to Project.gd 2020-06-04 23:20:20 +03:00
OverloadedOrama 4e111a7ac0 Created a Projects class
A Project class contains project-specific data like name, undo_redo, frames, layers, tags and brushes. These variables have been moved from Global. This is the first step towards multiple tab support, where each tab will be a different Project.
2020-06-04 21:05:36 +03:00
Manolis Papadeas fcdbb07b92
Merge pull request #256 from Orama-Interactive/refactoring
Bring more refactoring changes to master
2020-06-04 20:32:23 +03:00
Manolis Papadeas 9d38cbd13e
Update Drawers.gd 2020-06-04 20:30:26 +03:00
Manolis Papadeas dade9560d7
Update Canvas.gd 2020-06-04 20:30:16 +03:00
Manolis Papadeas bb5e70b965
Update Global.gd 2020-06-04 20:30:01 +03:00
Manolis Papadeas b6dec2d500
Merge branch 'master' into refactoring 2020-06-04 20:28:22 +03:00
Manolis Papadeas f4e5484e67
Update CHANGELOG.md 2020-06-04 19:56:38 +03:00
OverloadedOrama 2e5ff236d7 Renamed the _limit variables
See https://github.com/Orama-Interactive/Pixelorama/issues/232#issuecomment-638718662
2020-06-04 18:20:56 +03:00
OverloadedOrama 2f5354ae4d Fixed issue with autosave working even if it's turned off 2020-06-04 14:42:23 +03:00
Kinwailo 30f8891f21
Move pixel perfect and mirror code to drawers class (#255) 2020-06-04 14:11:24 +03:00
OverloadedOrama 7371cd79e4 Fixed image effects
Also replaced flip_image_horizontal() and flip_image_vertical() with just flip_image()
2020-06-03 02:53:15 +03:00
OverloadedOrama 54b628f6cb Made a Frame class, no longer use multiple Canvases for multiple frames
The Canvas is now single node, instead of having multiple canvases for each frame. This should also be a performance optimization, since there are less canvas nodes, so there are less _input() calls. It should also fix a rare Undo/Redo issue with motion drawing and making lines. Could be unstable, needs more testing.

As a side effect, the guides are now the same for all frames, so this should also close #246.
2020-06-03 02:14:24 +03:00
Manolis Papadeas aeabfc9697
Replace layer array with class in crop image
I forgot to replace that, sorry.
2020-06-03 00:23:18 +03:00
Manolis Papadeas 881e53dadc
Bring refactoring changes to master (#253)
* Refactoring image_menu_id_pressed method in Main.gd (#243)

* Refactoring image_menu_id_pressed method in Main.gd

I've moved the code from each "match" case into a seperate method to make it more readable.

Co-authored-by: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com>

* Refactoring Main.gd. Mostly cutting big methods into smaller ones. (#244)

* Refactoring Main.gd. Mostly cutting big methods into smaller one.

- Reduced size of _ready method in Main.gd
- Moved code from certain parts of old _ready method into seperate methods
- Fixed the translation bug related to CurrentFrame node in TopMenuContainer scene. The CurrentFrame node wasn't updating the language when I was changing language. I've also changed the translation file for this.
- Fixed Global.palette_option_button.selected related warning. Because of some unknown reasons, git didn't push completed line there.
- Moved code from file_menu_id_pressed and view_menu_id_pressed method in Main.gd to separate methods to make it more readable.

* Removed window_title changes from Main.tscn

Co-authored-by: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com>

* Fixed TextureRect images of the circle brushes in BrushesPopup

They all had the pixel brush image in their TextureRect

* Split code from PreferencesDialog.gd to HandleLanguages.gd

Also moved PreferencesDialog script & scene to src/Preferences. More Preferences code splitting will follow.

* Split theme related code from PreferencesDialog into HandleThemes.gd

* Moved shortcuts code from PreferencesDialog

* Created DrawingAlgos.gd and moved a lot of drawing code there

Moved code from Global.gd and Canvas.gd to DrawingAlgos.gd. Will also move the fill_gaps and draw_brush methods of Canvas.gd next. Maybe even refactor the inside of them a bit to make them easier to read.

* Connected "files_dropped" signal to a method

This lets the user drag and drop files into Pixelorama, while it runs, to open them. This doesn't work properly and will crash when it can't open the files. It will get merged into master soon.

* Renamed handle_running_pixelorama_with_arguments() to handle_loading_files()

handle_loading_files() is also used for _on_files_dropped()

* Moved draw_brush() and fill_gaps() from Canvas.gd to DrawingAlgos.gd

draw_brush() is currently very ugly and probably needs inside refactoring

* Removed coord clamping from fill_gaps()

This should make line making behave as expected when the mouse is outside of canvas boundaries

* Drawing is no longer limited by the canvas boundaries

his means that, if you have a brush largen than 1px, you can draw on the edges of the canvas. All pixels that are being drawn outside of the canvas will still have no effect.

* Use enums instead of strings for tools

This could be a slight increase in performance

* Fixed line making with Shift and don't let color picker pick colors outside of canvas

* Changed Global node variables to arrays for left/right

Instead of having 2 variables for left & right nodes, use an array instead. This will help with better looking code, automation and less repetitive code, as seen in ToolButtons.gd. Move related refactoring will follow.

* More Global left/right variables became Arrays

Global.update_left_custom_brush() and its right counterpart have also now become Global.update_custom_brush(mouse_button : int)

* Use Global.Mouse_Button instead of strings for comparison

This should be a slight increase in performance

* Refactoring perferences dialog (#251)

* Added ItemList to themes

* Language and theme checkboxes are now radio buttons

* Even more Global left/right variables became arrays

ColorAndToolOptions has now the same code for left and right tool options, with more similar refactoring coming soon to places like Canvas and DrawingAlgos

* Refactored Canvas.gd

* Refactored DrawingAlgos.draw_brush(), made draw_pixel() method

This also fixes alpha blending and lighting/darkening issues when drawing pixels with mirroring.

* Remove draw_pixel(), use draw_pixel_blended() instead

* Ignore warnings

I don't know what else to do about them, they seem trivial anyway

* Use enum instead of strings for Global.theme_type

Another potential small performance boost when changing themes.

* Use a new Layer class to handle layer information

This replaces the old Global.layers nested array mess, and makes the code easier to read and to understand.

* Fixed linked cel crash and layer naming

* Created a new Cel class, to handle cel information

Like the Layer class, it is used in place of Canvas.layers nested array mess. It hasn't been tested thoroughly yet, so there may be crashes.

* Fixed issue where if you moved a frame to the start (move left), it was invisible

* Added AnimationTag class

Replaces nested Global.animation_tags arrays. Also replaced array.duplicate(true) with looping through the array and creating a new class for each array element, because duplicate(true) does not create new classes, unfortunately, which was causing issues with undo/redo.

Co-authored-by: Igor Santarek <jegor377@gmail.com>
Co-authored-by: Kinwailo <lokinwai@gmail.com>
2020-06-02 20:00:18 +03:00
Manolis Papadeas d8136a3e17
Merge branch 'master' into refactoring 2020-06-02 19:58:58 +03:00
OverloadedOrama 34bc528e97 Added AnimationTag class
Replaces nested Global.animation_tags arrays. Also replaced array.duplicate(true) with looping through the array and creating a new class for each array element, because duplicate(true) does not create new classes, unfortunately, which was causing issues with undo/redo.
2020-06-02 05:14:05 +03:00
OverloadedOrama e229ad1519 Fixed issue where if you moved a frame to the start (move left), it was invisible 2020-06-01 19:03:08 +03:00
OverloadedOrama df0032c515 Created a new Cel class, to handle cel information
Like the Layer class, it is used in place of Canvas.layers nested array mess. It hasn't been tested thoroughly yet, so there may be crashes.
2020-06-01 18:50:31 +03:00
OverloadedOrama f246ed1a7a Fixed linked cel crash and layer naming 2020-06-01 16:56:23 +03:00
OverloadedOrama a9ca858303 Use a new Layer class to handle layer information
This replaces the old Global.layers nested array mess, and makes the code easier to read and to understand.
2020-06-01 16:42:53 +03:00