OverloadedOrama
8c02e696a9
Add hint tooltips for Project Brush buttons when importing them from image files
2020-07-13 21:59:25 +03:00
OverloadedOrama
c42a8a7219
Same as the previous commit but for Patterns too
2020-07-13 21:57:37 +03:00
OverloadedOrama
72f5ed1d2b
When importing a file brush and its filename already exists, add a number to its filename
...
Similar to 5df25c21c6
but for brushes.
2020-07-13 21:42:40 +03:00
OverloadedOrama
20f28ff492
Import project brushes from an image file
2020-07-13 21:17:08 +03:00
OverloadedOrama
b47685e857
Fixed importing brushes and patterns by opening file
2020-07-13 03:36:42 +03:00
OverloadedOrama
d099666abe
Fixed transparent background in ResizeCanvas dialog
...
It was always square, even on non-square image dimensions.
2020-07-11 03:19:52 +03:00
Kinwailo
4a668f71f5
Refactoring tools ( #281 )
...
* Refactoring tools
* Remove unused code
* Fixed some inferring errors and added translations
* Attempt to fix some Script Errors found in the CI workflow
* Fix bucket crash.
* Fix static type convert.
Co-authored-by: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com>
2020-07-09 15:22:17 +03:00
OverloadedOrama
e1724148fc
Updated translations, Readme & Changelog
2020-07-05 02:24:07 +03:00
OverloadedOrama
6e7b3610d0
Workaround for #275
2020-07-01 03:08:50 +03:00
OverloadedOrama
0bc26bbbae
Always ensure that directory_path is "user://" on HTML5
2020-06-30 22:36:03 +03:00
OverloadedOrama
7e3436d3ba
Loading image files is now possible in HTML5
...
Had to move some palette png code around in order to make it possible to use these image files as palettes. Hopefully loading .pxo files should be next. Addresses #280
2020-06-30 22:29:24 +03:00
OverloadedOrama
637a60d9ee
Saving .pxo files in HTML5 is now possible
...
Addresses #280
2020-06-30 20:25:43 +03:00
OverloadedOrama
fb7c1a1874
Saving .png files is now possible in HTML5
...
Addresses #280 . Huge thanks to https://github.com/Pukkah/HTML5-File-Exchange-for-Godot
2020-06-30 18:32:16 +03:00
OverloadedOrama
6b26bb5b10
Removed custom blend_rect() method from DrawingAlgos
2020-06-30 15:07:09 +03:00
OverloadedOrama
9fbfbc7432
Fix wrong "Export" text changing on the File menu
2020-06-25 05:07:07 +03:00
OverloadedOrama
8230d9de96
Added image size and frame size labels on PreviewDialog
...
Just to show the image size and the frame size. The latter is only visible if the user chose to import the sprite as a spritesheet.
2020-06-25 01:22:26 +03:00
OverloadedOrama
90d02ad75b
Have the ResizeCanvas width & height values the same as the project's size the first time
2020-06-24 04:02:19 +03:00
OverloadedOrama
89b6e3a989
Added a preview to the Resize Canvas dialog
2020-06-24 03:55:58 +03:00
OverloadedOrama
9362b3486b
Added a Center button to the ResizeCanvas dialog
2020-06-24 03:31:44 +03:00
OverloadedOrama
fa2dfb6bca
Change image offset in Resize Canvas
2020-06-24 03:21:44 +03:00
OverloadedOrama
8e2fe8dac3
Ability to import an image file as a pattern
...
Also moved some pattern importing code from Import.gd to Global.create_pattern_button()
2020-06-24 00:25:54 +03:00
OverloadedOrama
a8de56ed68
Ability to import an image file as a brush
...
Works only for file brushes at the moment. The image files gets copied into the "pixelorama/Brushes" directory.
2020-06-23 21:59:47 +03:00
OverloadedOrama
31fae924bf
Removed import button from splash screen and fixed #265
2020-06-23 17:15:18 +03:00
OverloadedOrama
047561b95a
Added options for when importing an image as a new frame or layer
...
The user can now choose which layer they want the new frame to be, and, similarly, which frame they want the new layer to be when importing an image.
2020-06-22 15:57:42 +03:00
OverloadedOrama
76b7014d84
Added UndoRedo support for importing images as frames and layers
2020-06-21 21:39:16 +03:00
OverloadedOrama
40a01f1da3
Added import image as a new layer of the current project
...
Just realized that I forgot to add undo/redo support of importing images as new frame/layer, oops. Will fix next.
2020-06-21 21:20:39 +03:00
OverloadedOrama
f260971056
Added import image as a new frame of the current project
...
Will also add a way to let the user choose which layer the new cel of the imported image will be.
2020-06-21 21:02:03 +03:00
OverloadedOrama
597fdbc0c0
Removed ImportSprites dialog
2020-06-19 23:07:56 +03:00
OverloadedOrama
2a2de8ba62
Spritesheet preview lines now work properly for non-square images
2020-06-17 17:56:18 +03:00
OverloadedOrama
25d9aca0c4
Drag and drop palette files to open them
2020-06-17 16:47:24 +03:00
OverloadedOrama
f7cc9a8104
Added ability to import images as palettes
2020-06-17 03:56:46 +03:00
OverloadedOrama
063ea04b4c
If imported image size is less than 100px, limit the max value of the spritesheet frames
2020-06-17 03:34:24 +03:00
OverloadedOrama
28818171d4
Call Global.dialog_open when a PreviewDialog pops up/gets hidden
2020-06-17 02:58:24 +03:00
OverloadedOrama
8142647a69
Added Line2D nodes to cut the spritesheet preview
...
This helps in previewing how each spritesheet frame will look when it will be imported in Pixelorama. Note that this does not work well with non-square images at the moment.
2020-06-16 18:30:01 +03:00
OverloadedOrama
13613703fc
Importing spritesheets is possible again
2020-06-16 17:59:56 +03:00
OverloadedOrama
57d4156341
Added a preview dialog that opens every time the user imports an image file
...
The dialog does not appear on .pxo files. Import options will be added on it soon.
2020-06-13 20:58:43 +03:00
OverloadedOrama
7219a5a274
Added Resize Canvas option to Image menu
2020-06-13 20:22:25 +03:00
OverloadedOrama
53b91a4bf4
Moved image effect code to DrawingAlgos.gd
...
More specifically, moved scale, crop, invert, desaturate and generate outline code to DrawingAlgos.gd. I am a little worried of DrawingAlgos.gd getting too big though.
2020-06-13 18:57:28 +03:00
OverloadedOrama
c6b977d48e
Set the main viewport's cursor to be cross, and set it as a custom cursor image
...
Instead of setting the main arrow as a custom cursor every time the cursor gets inside the viewport, set the viewport's default cursor to be the cross, and change the cross's image once in Global.gd
2020-06-13 18:09:46 +03:00
OverloadedOrama
2e587e3634
Made TopMenuContainer.gd and moved all the menu code there from Main.gd
...
Main.gd is now easier to read
2020-06-13 17:59:57 +03:00
OverloadedOrama
af078d590d
Update TransparentChecker's size of all viewports
2020-06-13 15:33:59 +03:00
OverloadedOrama
8064d7b459
Fixed shadowed variables crashes/warnings occurring in Godot 3.2.2-rc1
2020-06-13 15:25:12 +03:00
OverloadedOrama
e6aea97f1b
The world_2d of the preview viewports is no longer the same as the main viewport's
...
A "CanvasPreview" Node2D has been added to every preview viewport, where it draws the current frame. This solves #205 .
2020-06-12 02:27:21 +03:00
OverloadedOrama
2371238ec0
Removed Import option from the file menu
...
The "Open" option will handle importing of .pxo files and image files from now on. The "ImportSprites" file dialog node and script are scheduled to be deleted too. Importing spritesheets option will return soon. Next thing I'm going to work on is a preview window that will appear when importing image files.
2020-06-12 01:11:58 +03:00
OverloadedOrama
b0338ab09a
Changed structure of .pxo files
...
The structure of the .pxo files is now consisted of a JSON-structured metadata part, where all the data that can be stored as text are, and a binary part, that contain all the actual image data for each cel and project brush.
This makes it easier for users to understand the .pxo structure, easier to add more changes without having to check versions for backwards compatibility, easier to be opened by third-party apps and it allows us to make an "Export JSON metadata" option, that will export just the metadata in JSON format, without the binary image data.
It's backwards compatible and .pxo files from as far as v0.5 are still supported.
2020-06-10 04:17:39 +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
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