OverloadedOrama
0a0bf62bcd
Each Project has its own export path now
...
This could be buggy so it needs more testing.
2020-08-28 18:05:49 +03:00
OverloadedOrama
44ecf375fc
Removed duplicate code from the image effects and put it into the parent ImageEffect class
2020-08-28 01:20:07 +03:00
OverloadedOrama
b07545a3d1
Added missing CelButton hint tooltip translation
2020-08-27 20:02:53 +03:00
OverloadedOrama
850c5606de
Added missing translations
...
And added hint tooltips to "Pixel Perfect" and "Overwrite Color" buttons
2020-08-27 14:30:26 +03:00
OverloadedOrama
b53926724e
Made image effect dialog previews centered & made them expand vertically
2020-08-26 18:33:15 +03:00
OverloadedOrama
b52a7c224a
Put a transparent checker background to RotateImage dialog
...
Also made it extend the ImageEffect class.
2020-08-26 17:49:46 +03:00
OverloadedOrama
e88b62ea44
Fixed issue in HSVDialog where the TextureRect would resize on dialog resize
2020-08-26 16:12:35 +03:00
Darshan Phaldesai
60c5ec9ad5
Affect area now affects the previews. ( #320 )
2020-08-26 14:29:49 +03:00
Matthew Paul
719708fb10
Add transparent checker to export dialog and animation cels ( #318 )
...
* Add checker to export dialog
* Add checker to CelButton
2020-08-26 12:45:32 +03:00
OverloadedOrama
f121c39ddc
Put checker backgrounds to almost all image effect dialog previews
...
Also made them inherit ImageEffect, resulting in much less and cleaner code. Only RotateImage remains. Partially addresses #206 .
2020-08-25 19:49:18 +03:00
OverloadedOrama
2af677016e
Created an ImageEffect class
...
This will be the parent of all (or most) image effect dialog nodes. Currently only parent on FlipImageDialog, will change to be parent of the rest of the effects.
2020-08-25 19:07:12 +03:00
OverloadedOrama
b73937fd0c
Made HSVDialog a ConfirmationDialog node
...
To be consistent with the rest of the image effect dialogs
2020-08-25 18:49:12 +03:00
OverloadedOrama
a65fc0e00c
Added Romanian and Korean
2020-08-25 17:17:43 +03:00
OverloadedOrama
3a88a5c861
Change "Art by" translation string
...
Found in the splash dialog
2020-08-21 20:13:22 +03:00
OverloadedOrama
8d1c2e96f3
Finished implementing the isometric grid - Closes #305
...
Added the ability to change grid type in Preferences, and made an isometric cell size value which affects just the size of the cells of the isometric grid. Also updated translations.
2020-08-20 00:12:07 +03:00
OverloadedOrama
14d958e55f
Moved tile mode drawing logic from Canvas to a new script
...
I mostly did it so I could move tile mode logic into a new node, so I could have control over the drawing order. TileMode.gd also always draws 8 blank rectangles, which are being drawn on top of the grid, in order to hide it if it gets out of boundaries. We are now very close to implementing an isometric grid, #305 .
This shouldn't have much of a performance impact, but some more testing is most likely needed.
2020-08-18 17:03:49 +03:00
OverloadedOrama
f2136236b1
Moved canvas indicator drawing to a new script
...
Cursor indicators now appear on top of the grid again
2020-08-18 16:35:05 +03:00
OverloadedOrama
92332cc52e
Move Canvas related files to a "Canvas" folder under "UI"
2020-08-18 16:21:31 +03:00
OverloadedOrama
35b2c201ae
Changed how isometric grid is drawn
...
Instead of drawing individual lines, execute draw_isometric_tile() multiple times. What this method does is basically draws a single isometric tile, which then gets repeated for the entire canvas size. Also moved all the grid logic to a new script, which gets updated less often that Canvas.gd, for optimization purposes.
Works better than the previous method, although it might be a bit slower, and currently does not work well if the canvas size is not divisible by the grid size. For now, it only gets affected by the grid width. Changing grid height has no effect.
2020-08-17 22:54:33 +03:00
Kinwailo
39808082b6
add follow canvas movement and scale option to transparent checker ( #311 )
2020-08-17 22:30:58 +03:00
OverloadedOrama
ff54d2db8e
Add a transparent background for flip image dialog preview
...
Seems to be working fine, will do the same for the remaining dialogs.
2020-08-16 00:07:56 +03:00
OverloadedOrama
79bd015c19
Put top menu & ruler styles inside the themes
...
Instead of using stylebox files.
2020-08-14 00:22:49 +03:00
OverloadedOrama
fe2ed42819
Use VisualServer viewport for applying shader
...
This comes with the benefit that we no longer need a Viewport node in the ShaderEffect dialog, which lets us have the Preview TextureRect at a fixed size. Previously, the preview was scaled based on the image's size, which would make applying shaders to large images very inconvenient, since the dialog would be way too big.
2020-08-13 01:55:31 +03:00
OverloadedOrama
8734659da1
Added Hungarian, updated list of translators
...
Norwegian isn't working for some reason.
2020-08-10 03:26:55 +03:00
OverloadedOrama
da656df5b7
Added more options to the Gradient Dialog
2020-08-08 19:02:49 +03:00
OverloadedOrama
e8683d75bf
Fixed export dialog path textedit not being updated when choosing a directory
2020-08-08 17:21:52 +03:00
Martin Novák
f3bce3857a
Replace godot-gifexporter with godot-gdgifexporter ( #295 )
...
Add exporting in a separate thread and a progress bar
Remove background color option from gif export
2020-08-07 08:13:04 +03:00
Michael Alexsander
89cd1d972a
Set tool options containers' size flags to "Fill" ( #292 )
2020-08-06 12:27:20 +03:00
OverloadedOrama
65828b328a
Change window titles in image effect dialogs
2020-08-04 19:10:50 +03:00
azagaya
6d23f95d07
Added Scale3X algorithm as an option to scale sprites ( #290 )
2020-08-02 18:24:00 +03:00
OverloadedOrama
5bbea6fa03
Don't let preview animation play if there's only one frame
2020-08-02 01:54:12 +03:00
OverloadedOrama
7269b45fc5
Added play button and zoom slider for the small canvas preview
...
May also be a solution for the age old issue #25 .
2020-08-02 00:59:00 +03:00
OverloadedOrama
ebc9eab773
Added dialog with options for desaturation
...
Not sure if options for RGBA channels are really needed here, but I kept them from invert colors. We could remove them in the future if they are unneeded.
2020-08-01 04:24:11 +03:00
Martin Novák
6f645d996d
Refactor export dialog ( #288 )
...
* Split export code from export dialog to Export.gd autoload
Clean access to child nodes of export dialog
* Fix export variables set in Main.gd
* Fix more wrong variable assignments
Co-authored-by: alexhayoo <65853178+alexhayoo@users.noreply.github.com>
2020-07-31 23:26:52 +03:00
OverloadedOrama
2346ca810b
Added dialog with options for invert colors
2020-07-31 03:39:46 +03:00
OverloadedOrama
0d1e45cfe4
Added a dialog for image flipping with options
2020-07-30 00:01:04 +03:00
OverloadedOrama
d4fe1f7b12
Moved image effect scene and script files into a new folder
2020-07-29 20:34:27 +03:00
OverloadedOrama
30cd607c65
Made "ImageEffects" node a separate scene
...
The ImageEffects node is the parent of all image effect dialogs
2020-07-29 20:06:20 +03:00
OverloadedOrama
bedede5970
Added more options to the OutlineDialog
2020-07-29 18:25:19 +03:00
OverloadedOrama
ec81950139
Experimental shader feature: Expose shader's float uniforms to the UI
...
If the loaded shader has uniforms, they will be exposed to the UI, so the users will be able to modify the shader parameters easily. Currently only works with float uniforms.
2020-07-28 04:11:06 +03:00
OverloadedOrama
8529e93029
Don't save erased guides in .pxos
...
This fixes a crash when saving a pxo with guides that have been removed
2020-07-27 20:03:15 +03:00
OverloadedOrama
8cca37e752
Hid some color picker presets from GradientDialog
...
And removed some code for setting preview texture flags to 0. The flags are already being set in create_from_image()
2020-07-27 04:47:29 +03:00
OverloadedOrama
94aa94a364
Added a preview in OutlineDialog
2020-07-27 04:36:00 +03:00
OverloadedOrama
4870ebc094
Added checkbox in OutlineDialog for affection selection
2020-07-27 04:11:46 +03:00
OverloadedOrama
585f83e28a
Fixed Invert and Desaturate not working on the correct cel
2020-07-25 19:35:46 +03:00
OverloadedOrama
186e2259ac
[EXPERIMENTAL] Added ability to load a shader as an image effect
...
This new feature allows users to load a .shader file (must be a GLES2 Godot shader) that will modify the image itself. This feature is experimental and possibly buggy, not all shaders are working properly and I'm not sure yet why. As such, this feature may not be included in v0.8 stable.
2020-07-25 16:26:57 +03:00
OverloadedOrama
59122f6a13
Fixed issue in HSVDialog using the wrong selected pixels when affecting all projects
2020-07-24 03:53:24 +03:00
OverloadedOrama
2cb07fb848
Added option to affect all projects in the HSVDialog
...
HSVDialog should be ready now. These options will also appear in the rest of the image effects.
2020-07-24 03:41:10 +03:00
OverloadedOrama
95ccd42e48
Added option to affect all frames in the HSVDialog
2020-07-24 03:28:39 +03:00
OverloadedOrama
1ce89c6577
Added affecting options to the HSVDialog
...
First option is to affect the selected pixels only. The second it to affect the current cel, or the entire frame (all cels of the frame). Options to affect all frames and all projects will be added next. I also made changes to Canvas.handle_undo() and handle_redo() to make this work.
Once all these options are added successfully in HSVDialog, they will also be added in the rest of the Image effect dialogs.
2020-07-24 03:22:12 +03:00
OverloadedOrama
af915caf7a
Refactored adjust_hsv to be 3 times faster
...
adjust_hsv() now gets executed once instead of thrice. The results should be the same.
2020-07-23 04:39:23 +03:00
OverloadedOrama
462187a6c1
Grouped Image effect dialogs together in Main.tscn
2020-07-23 04:15:18 +03:00
OverloadedOrama
8d9e1e8207
Fullscreen can be toggled on and off from the View menu
2020-07-21 22:11:25 +03:00
OverloadedOrama
0f82be765e
Replaced the _min and _max Project variables with Project.selected_pixels
...
This will allow us to create more selection tools in the future, that aren't necessarily rectangular (See #129 ) and even enhance the current rectangle selection tool (See #56 )
Current issues spotted so far:
Drawing is slower for large images, and bucket filling is also considerably slower even on a 64x64 image. Optimizations are required.
2020-07-20 22:15:34 +03:00
OverloadedOrama
8c965c1858
Added ability to change gradient direction
2020-07-18 19:01:24 +03:00
OverloadedOrama
7aee58ec1a
Fixed gradient dialog crash
...
Occurred sometimes when trying to generate a gradient in a different project that has a different size.
2020-07-18 17:29:05 +03:00
OverloadedOrama
29e9579eb6
Added basic gradient generation
...
A new option in the "Image" menu, gradient generation.
2020-07-18 17:23:36 +03:00
OverloadedOrama
826b4da177
Organized all Dialog nodes in Main.tscn under a parent "Dialog" node
...
Just to make the scene tree look cleaner.
2020-07-18 02:27:47 +03:00
OverloadedOrama
c6bc3d6d05
Change point limit of Guides from 99999 to 19999
...
This should prevent some bugs where the guide being dragged won't appear. Probably memory issues?
2020-07-16 05:36:17 +03:00
OverloadedOrama
740d7e237d
Made Symmetry Guides have dotted lines
...
Just to make them different from regular Guides
2020-07-16 05:35:31 +03:00
OverloadedOrama
a5a8bf1fe5
Turn Symmetry Guides visibility on and off if mirroring is enabled
...
Also fixed issue with "Show Guides" view menu option and having multiple projects with guides. Only think remaining is to make the Symmetry Guides look different than regular guides. Closes #133 .
2020-07-16 05:05:40 +03:00
OverloadedOrama
9fa91ffd8e
Added SymmetryGuides
...
Two special guides - one horizontal and one vertical - that let you change the axis of symmetry for mirroring. On the next commit(s) I will make them visible only if mirroring is toggled on. Almost solves #133
2020-07-16 04:25:59 +03:00
OverloadedOrama
70ba60cbaa
Have "untitled" be the default project name on save & export
2020-07-15 20:27:14 +03:00
OverloadedOrama
ebf19c7bfe
Disable "open last project" option in HTML5
2020-07-15 18:36:46 +03:00
OverloadedOrama
8ec3256ce6
Have "untitled" as default project name in SaveSpriteHTML5
2020-07-15 18:28:46 +03:00
OverloadedOrama
ea717cfea7
CreateNewImage now remembers the last created canvas size - Closes #178
...
The default image width, height and fill color are being used only when the program first launches. After that, if the user creates an image with changed settings, these settings are being kept.
2020-07-15 03:25:59 +03:00
OverloadedOrama
c6ccbd4868
Import image file as part of a random brush
...
The random brush gets loaded only if Pixelorama gets restarted. I'll see if I can change this somehow.
2020-07-14 03:33:01 +03:00
OverloadedOrama
1b561220b2
Merge brush_name_replace() and pattern_name_replace() to file_name_replace()
2020-07-13 22:13:21 +03:00
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