Manolis Papadeas
f70efe3076
Move new_empty_frame() to Project.gd from Canvas.gd
...
This commit also changes the behavior of the fill color. The new cels now only get filled with the Project.fill_color if they are on the bottom layer.
2021-12-01 20:50:50 +02:00
Manolis Papadeas
4c60ef144f
Fixed project not having the correct size if the default image size has been changed in the Preferences
...
Ideally, the new_empty_frame() method should be removed from Canvas and should probably go to Frame or Project.
2021-12-01 20:02:39 +02:00
Manolis Papadeas
f7ef4a4283
Remove handle_undo() and handle_redo() from Canvas.gd
...
Getting rid of some old, unneeded code.
2021-12-01 17:49:22 +02:00
Manolis Papadeas
f3d696ef81
Clear code from ShaderEffect.gd
...
Now inherits from ImageEffect and uses a ShaderImageEffect to generate the image. We get to clear duplicate code that was shared between ShaderEffect.gd and ShaderImageEffect.gd this way, and it also uses the undo/redo logic from ImageEffect instead of Canvas.gd.
2021-12-01 03:41:20 +02:00
Manolis Papadeas
2cab2af561
Preload image effect shaders
2021-12-01 03:04:40 +02:00
Manolis Papadeas
72aef23cce
UI changes to the onion skinning settings
...
Also changed the ignore text to the "_io" suffix instead of "ignore_onion", because this is quicker to type.
2021-12-01 02:28:12 +02:00
Manolis Papadeas
15d987ebae
Changed behavior of flip image to make it work as expected with selections
...
The selection itself also gets flipped, if there is any
2021-11-30 02:42:35 +02:00
Manolis Papadeas
e2a68c4ba4
Add an underscore to private method's names
...
As a way to differentiate between public and private methods, as per the official GDScript naming convention. Haven't changed all of the codebase yet, just some scripts that had a lot of public methods. This fixed 4 of the 7 errors of the linter.
2021-11-29 17:12:30 +02:00
Manolis Papadeas
540a61ae4d
Merge onion skinning past and future into one script
2021-11-26 03:38:00 +02:00
Variable
159a821dd2
Better Onion Skinning ( #600 )
...
* better onion part (1/3)
changed code and added scripts
* better onion part (2/3)
added some onion variables
* better onion part (3/3)
Added to onion dialog
* removed whitespace that gave static error
2021-11-26 02:55:08 +02:00
Manolis Papadeas
c6b9a1fb82
Format code and add static checks ( #599 )
...
* gdformat .
* Lint code - Part 1
* Format code - Part 2
* Lint code - Part 2
Trying to fix the max allowed line length errors
* Add normal_map_invert_y to the image .import files
Because of Godot 3.4
* Do not call private methods outside of the script's scope
Lint code - Part 3
* Format code - Part 3
* Fixed more line length exceeded errors - Lint code Part 3
* Export array of licenses - Lint code part 4
* Clean hint_tooltip code from Global
Removes a lot of lines of code
* Create static-checks.yml
* Fix FreeType's license
2021-11-25 14:48:30 +02:00
Manolis Papadeas
536250f517
Moved some variables away from Global
2021-11-23 02:36:22 +02:00
Manolis Papadeas
79ff0a8d45
Optimize _input() methods
2021-11-22 21:32:39 +02:00
Manolis Papadeas
4931e50213
Move cursot tool icon visibility to ViewportContainer
...
I have no idea what I was thinking when I put that code inside Canvas' _input()
2021-11-22 18:43:06 +02:00
Manolis Papadeas
36680795ee
Move even more code away from Global
...
The idea is to make the project less dependant on Global. Global should strictly be used for reusable code in multiple places, not as a second Main. I just hope I'm not breaking anything during this process.
2021-11-22 17:37:06 +02:00
Manolis Papadeas
19c062fa07
Move some PopupMenu code away from Global's _ready()
2021-11-22 16:15:36 +02:00
Manolis Papadeas
88365301fb
Change window opacity settings to a dedicated dialog with a slider and a spinbox
...
Changed from a popupmenu with fixed settings. This should give more freedom to the user while improving UX.
2021-11-22 04:47:41 +02:00
Manolis Papadeas
f4c903771d
Remove some unneeded yield() calls
...
And minor changes to make the code a tiny bit more clean. I tested this PR, but it still might be a bit risky.
2021-11-17 19:59:14 +02:00
mrtripie
0081aa365a
Guide Color Improvements ( #561 )
...
* Symmetry guide color work
* Changed to semi-transparent guides from red, blend slight blue into symmetry guides for variation
Co-authored-by: MrTriPie <MrTriPie>
2021-11-17 01:48:21 +02:00
Variable
3e88efc118
Improvements to Animation Tags ( #560 )
...
* Animation tag fix (a)
fixed tag behavior in "Project.gd"
* Animation tag fix (b)
fixed tag behavior in "AnimationTimeline.gd"
* Animation tag fix (c)
fix top part of line not visible
* Animation tag fix (d)
a fix i forgot about earlier
* added a randomizer...
... to auto select colors of new tags
* Fix Tag scrolling without cels when scrolled on it
* removed randomize() cause it's not needed
2021-11-17 00:21:29 +02:00
mrtripie
969aed8070
Cache Save/Open Sprite Dialog's directory, and keep dialogs synced ( #559 )
...
* Open/Save Sprite Dialogs now have their directory cached so when reopening Pixelorama they will be set to that directory. Load last project and load recent project also syncs with the open/save dialogs and caches that directory
* Sets a projects default file path to the cached file directory (not sure about) and if the export directory is blank, use the cached file directory
* Changed 'file_dialog_dir' to 'current_dir'
Co-authored-by: MrTriPie <MrTriPie>
2021-11-17 00:17:02 +02:00
Manolis Papadeas
752703878d
Use onready vars for nodes in Global.gd
...
I have no idea why I didn't do that sooner. This cleared over 80 lines of code.
2021-11-16 00:04:50 +02:00
mrtripie
a9039cccd5
Canvas Rotation ( #558 )
...
* Implemented canvas rotation
Co-authored-by: MrTriPie <MrTriPie>
2021-11-13 20:43:37 +02:00
Manolis Papadeas
24d25d49ea
Implement #429
2021-11-11 03:21:34 +02:00
Manolis Papadeas
056cb76a46
Minor code cleanups
2021-11-06 17:23:54 +02:00
Manolis Papadeas
87261e93c6
Disable "New Brush" in the Edit menu if there is no selection
2021-11-06 17:19:20 +02:00
Manolis Papadeas
18ed5b2a05
Update CHANGELOG & AboutDialog
2021-10-07 16:57:26 +03:00
Manolis Papadeas
b7e598c438
Fix issue with copying and pasting to a different project that has a smaller canvas
...
Fixes a bug caused by 86e66495b1
2021-10-06 02:02:56 +03:00
Manolis Papadeas
845bf2bab7
Fixes critical bug that is caused by removing a project tab that is to the left of the currently active tab
2021-10-06 01:51:39 +03:00
Variable
da070db27e
Log Option ( #546 )
...
* Added Log button option
2021-10-05 23:37:16 +03:00
Manolis Papadeas
721cab8765
Minor changes that make Pixelorama work with Android
...
Just planting the seeds of a possible Android version, probably tablet-only, at least at first. I do not know when that will happen yet.
2021-10-02 15:08:58 +03:00
Manolis Papadeas
3b7ac1eddf
Fix guides not working properly when the UI is scaled
2021-09-27 01:30:53 +03:00
Manolis Papadeas
86e66495b1
Fix issue with copying and pasting to a different project that has a bigger canvas
2021-09-24 19:23:59 +03:00
Manolis Papadeas
f948c24430
Fix Changelog URL
2021-09-24 17:39:02 +03:00
Variable
41d88c1839
Boost HSV and Rotation sliders ( #531 )
...
* Added a timer to filter out useless values
This timer will determine if you actually want to view these changes or just want to skip ahead
* a live preview checkbox
* Some dialog improvements
* Minor changes/adjustments
2021-09-23 21:25:35 +03:00
Manolis Papadeas
8f115a726e
Fix #541
2021-09-22 21:54:16 +03:00
Laurenz Reinthaler
ad37c67690
Add buttons for looking at different splash-screen artworks ( #538 )
...
Fix overlooked line of code
2021-09-22 16:06:30 +03:00
Manolis Papadeas
d584ae0839
Launch of version 0.9 - selections & shapes update
2021-09-18 18:59:15 +03:00
Manolis Papadeas
dc413eb724
Update the splash screen with 3 new artworks for v0.9
...
Art by Wishdream, Roroto and Kamilayza
2021-09-17 16:37:16 +03:00
Manolis Papadeas
3d0d0b0335
Bump version to v0.9-rc3
2021-09-06 17:21:10 +03:00
Manolis Papadeas
da8bc0d057
Added a "Licenses" tab in the About menu, which displays Pixelorama's license as well as the software it depends on, such as Godot
2021-09-05 01:07:12 +03:00
Manolis Papadeas
47b20ff5c3
Fix the canvas preview having incorrect zoom when switching between projects
2021-09-04 15:32:44 +03:00
Manolis Papadeas
e4ba665c2a
Always display the close button in tabs and let users close projects other than the current
2021-09-01 18:07:36 +03:00
Variable
fb93143906
Dialog improvements ( #530 )
...
* Dialog Improvements
Preview now scales with resizing Dialog
2021-08-31 05:38:11 -07:00
Variable
32dc69fee6
Guide corrections ( #528 )
...
* Fixed guide size
2021-08-30 15:00:04 -07:00
Variable
75059b5b12
Selection fixes ( #527 )
...
* Fix for multiple cel selection issue
Now it will only apply selection to the selected cels that are **visible and unlocked**
* Fix for loss of selection data
This will hopefully fix the selection data loss on toggling layer buttons
2021-08-30 03:24:48 -07:00
Manolis Papadeas
680ab481f3
Don't transform content if layer is locked or invisible
2021-08-30 01:22:13 +03:00
Variable
ab18e8bdb6
Transparency updates ( #525 )
...
* Update with theme instead of only value change
instantly updates with theme (old version updated on value change only)
* shortened some paths
2021-08-29 10:19:08 -07:00
Manolis Papadeas
e088820c74
Bump version to v0.9-rc1
2021-08-28 20:01:05 +03:00
Manolis Papadeas
79e1ab5e61
Remove unneeded Global.update_hint_tooltips() call
2021-08-27 00:49:01 +03:00
Variable
ddc69b8282
Editable zoom ( #523 )
...
* editable zoom change 1
* editable zoom change 2
* editable zoom change 3
* editable zoom change 4
* editable zoom change 4 part b
added upper limit automation for zoom
2021-08-26 14:23:51 -07:00
Manolis Papadeas
180c775b72
Disable per pixel transparency for OSX
...
As a temporary workaround for #491
2021-08-24 17:34:58 +03:00
Manolis Papadeas
e7f8417d0d
Subtle toolbar UI changes
2021-08-18 20:13:56 +03:00
Martin Novák
9ef7818c77
Tweak UI to use less empty space ( #514 )
...
* Tweak right side panels to use less empty space
* Add fake grabber to tools panel. Add a bottom margin. Fix a few issues with resizing.
* Fix tallscreen mode. Set a bit smaller animation timeline min height.
* Change Preferences visibility settings
* Update Main.tscn
* Fix crash when changing to tallscreen and then switching themes
Co-authored-by: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com>
2021-08-16 16:56:19 -07:00
Martin Novák
b95496c57d
Fix dialog sizes ( #512 )
2021-07-30 16:05:50 -07:00
Manolis Papadeas
1d20295f7d
Keep images unlocked after editing them - Should close #331
...
Not sure if this actually solves the issue or just makes it more rare, but I haven't been able to reproduce any PoolVector locking issues so far. The problem was that images were remained locked essentially all the time, which seemed to cause issues. Maybe other PoolVectors could not get locked?
2021-07-25 21:49:37 +03:00
Manolis Papadeas
c6a056bba6
Made cloning frames create linked cels if the linked cel button is toggled on - suggestion of #402
2021-07-22 03:10:00 +03:00
Manolis Papadeas
57bb7929df
Fixed issue with linked cels where, if you had linked cels in one layer and then linked more cels of the same frame in another layer, their previews did not update automatically
...
Cel's image_texture was being reset due to the creation of new Cel instances in CelButton.gd (line 113)
2021-07-22 02:25:00 +03:00
Manolis Papadeas
9bec8f1b09
Preload more resources
...
Had to remove references to Brushes and Patterns classes from BrushesButton.gd and PatternButton.gd due to GDScript's cyclic reference bug
2021-07-21 18:29:52 +03:00
Manolis Papadeas
28b8e000f9
Rewrite the crop image method
...
Should be a bit faster, but I still get weird bugs at random
2021-07-20 22:06:18 +03:00
Manolis Papadeas
d0433bed6f
Preload layer and cel button nodes in Project.gd
...
Just a minor optimization to avoid unnecessary loading
2021-07-20 21:03:15 +03:00
Manolis Papadeas
ad4b377bc8
Only click the layer button with the left mouse button
2021-07-10 05:19:09 +03:00
Manolis Papadeas
983d14c0d1
Fix deleting content not working with undo
2021-07-09 12:59:01 +03:00
Manolis Papadeas
55c5688f16
Fix changing cel opacity calling project.frames_changed()
...
It shouldn't happen
2021-07-09 03:38:06 +03:00
Manolis Papadeas
2760049cfd
Fix content transformation not getting confirmed when changes were done to frames and layers
...
Also fixes issue where frame/layer copying does not copy the transformed data
2021-07-08 20:46:56 +03:00
Manolis Papadeas
a46f21265e
Update CHANGELOG & AboutDialog
2021-07-06 14:03:41 +03:00
Manolis Papadeas
0bcb65db62
Update AboutDialog.gd
2021-07-05 19:32:12 +03:00
Manolis Papadeas
4b191139f6
Fix timeline's resize grabber not responding immediatly
...
It seems that the Canvas-Timeline SplitContainer's split offset had a hardcoded value
2021-07-04 16:09:21 +03:00
Manolis Papadeas
21e2cd6bd0
Dragging and dropping frames to re-arrange them no longer makes selected_cels empty
2021-06-27 18:15:06 +03:00
Manolis Papadeas
98d41fca14
Remove Global.find_node_by_name()
...
Use the built-in find_node() method instead.
2021-06-26 14:01:07 +03:00
Manolis Papadeas
e4aff633bb
Change "Current cel" strings to "Selected cels"
...
Because now we have the ability to select multiple cels
2021-06-25 17:58:41 +03:00
Manolis Papadeas
f5d07e660d
Do not clear content from selection in selected cels when moving if Alt has been pressed beforehand
...
This is about Alt + mouse click when moving a selection. See https://github.com/Orama-Interactive/Pixelorama/issues/129#issuecomment-756799706 for more info
2021-06-23 20:38:17 +03:00
Manolis Papadeas
5b74a4292d
Fix pasting not working properly on multiple selected cels
2021-06-22 01:46:52 +03:00
Manolis Papadeas
db0799bc12
Added Ukrainian
2021-06-21 00:24:39 +03:00
Manolis Papadeas
ac631e3e3d
Transform selected content of multiple selected cels
...
Does not work with rotation. It might be a good idea to replace this whole system with one that uses a transformation matrix, to handle rotation and skewing more easily in the future. I'm not a huge fan of this current code.
2021-06-19 19:29:32 +03:00
Manolis Papadeas
18592ed7c0
Minor UI changes
2021-06-15 01:03:46 +03:00
Manolis Papadeas
79b37a95b3
Fix palette importing not including all colors if they have more than 64 colors
2021-06-14 20:38:46 +03:00
Manolis Papadeas
791e966a71
Update Previews on all mouse events
2021-06-14 19:21:58 +03:00
Manolis Papadeas
bdd06d42ce
Added tool button size option in the Preferences
2021-06-14 02:14:31 +03:00
Manolis Papadeas
de850ce8a1
Ability to select multiple cels and edit them all at once
...
A rather significant change, so, while I have tested it, it might still be buggy. Implements a part of #306 .
2021-06-12 01:06:13 +03:00
Manolis Papadeas
73cce5b740
Set frame delay's min value at 0.01, does not let it become 0
2021-06-11 22:56:38 +03:00
Manolis Papadeas
feece75935
Added Norwegian Bokmål
2021-06-11 19:38:34 +03:00
Manolis Papadeas
f1ea8e30b2
Fix animation tag spacing
2021-06-09 17:17:53 +03:00
Manolis Papadeas
e9bf310934
Implement layer and frame dragging and dropping to re-arrange them in the timeline
...
Part of #306
2021-06-06 02:19:34 +03:00
Manolis Papadeas
1a87321437
Added a Delete option in cel's right click menu
...
Delete doesn't actually delete a cel, it just clears its contents. Maybe renaming it to something else would be a good idea.
2021-06-05 13:38:32 +03:00
Manolis Papadeas
e7a5b45536
Clicking on a layer button now selects the layer. Double clicking it allows renaming
2021-06-05 03:06:07 +03:00
Manolis Papadeas
ecd08ce132
Add a right click popup menu on the frame buttons and move most of the frame related options there
...
These options used to be on the right click popup menu of the cel buttons. Now, cel options only contain Link/Unlink Cel, for now.
2021-06-05 02:37:33 +03:00
Manolis Papadeas
39b0baca84
Frame numbers in the timeline above the cels are now clickable buttons
2021-06-05 02:11:22 +03:00
Manolis Papadeas
ec1b29eb5e
Let the user change icon colors regardless of theme
2021-06-04 21:44:05 +03:00
Manolis Papadeas
12ce12a292
Replace button icons with single-color textures that change color automatically depending on the theme
...
There is no longer any need for having specific graphics for each theme, as white colored textures can change their modulation to any color.
2021-06-03 22:42:08 +03:00
Manolis Papadeas
489749e305
Fix division by zero crash
2021-06-01 18:43:23 +03:00
Manolis Papadeas
5e1c9dc73b
Fix bug where you couldn't resize the selection after pasting
2021-06-01 18:19:16 +03:00
Manolis Papadeas
ed229565ad
Resize selection with gizmo from center by holding Control after clicking
2021-05-31 03:04:10 +03:00
Manolis Papadeas
2a9420700b
Fix image effect preview background not keeping its aspect ratio
2021-05-30 19:20:56 +03:00
Manolis Papadeas
207b3a5630
Update ShaderEffect.gd
2021-05-30 17:42:50 +03:00
Manolis Papadeas
6d2f02b782
Let the user change border color and toggle the marching ants effect in the preferences
2021-05-28 03:46:16 +03:00
Manolis Papadeas
bd84fbbe39
Rename the Lighten/Darken tool to Shading tool
2021-05-26 02:17:49 +03:00
Manolis Papadeas
bd085786d5
Fixed issue when pasting and the clipboard image is empty
2021-05-25 22:50:35 +03:00
Manolis Papadeas
a77cc05446
Made brush creation from selection a separate menu option
...
Also works with Ctrl+B. Copying no longer creates a project brush.
2021-05-25 22:48:37 +03:00
Manolis Papadeas
4e8acdf002
Updated Translations.pot and some tool hint tooltips
2021-05-25 02:51:10 +03:00