Manolis Papadeas
30f2873ed1
Remove unneeded method from HTML5FileExchange
2021-12-18 02:31:10 +02:00
Manolis Papadeas
057318f659
Pause the app when it loses focus instead of limiting its FPS
2021-12-11 20:02:51 +02:00
Manolis Papadeas
086c6c5b9c
Remove unneeded font changing code
...
Welp, I just found out that Godot's font resources have fallback options. Better late than never, I guess.
2021-12-03 02:39:10 +02:00
Manolis Papadeas
59ee60151e
Change "Rectangle Select" undoredo action to "Select"
2021-12-02 13:25:20 +02:00
Manolis Papadeas
67ec887ad1
Just one method for undo/redo in Global.gd
2021-12-02 02:22:32 +02:00
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
3835a3f0da
Fix all of linter errors
2021-11-29 18:58:40 +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
246f6f9be1
Minor code changes
2021-11-25 19:10:04 +02:00
Manolis Papadeas
8c9545e183
Preload tool scenes
...
The app now opens just a bit faster
2021-11-25 17:42:35 +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
41b5db4622
Don't change the cursor tool icon texture _input() call
...
Seems like my past self has made some pretty embarassing optimization mistakes...
2021-11-23 02:52:21 +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
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
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
0c1fcdea89
Use JavaScript.download_buffer() for file downloading in the Web version
...
This commit makes Pixelorama unable to run in Godot versions prior to 3.4.
I wonder if there are plans for an upload_buffer() method as well...
2021-11-10 20:16:25 +02:00
Silent Orb
520e31cd7e
Persist palette selection ( #549 )
2021-10-17 16:20:11 +03:00
Laurenz Reinthaler
502c7d9409
Add idle fps setting and fix bug when moving the mouse outside of the application ( #543 )
2021-09-29 18:03:45 +03:00
Manolis Papadeas
61fa13cde3
Fix notifications not appearing properly when the UI is scaled
2021-09-27 02:41:45 +03:00
Manolis Papadeas
f3ea6b57cd
Fix opening pre-v0.8 pxo files
2021-09-07 20:31:32 +03:00
Manolis Papadeas
47b20ff5c3
Fix the canvas preview having incorrect zoom when switching between projects
2021-09-04 15:32:44 +03:00
Jeremy Behreandt
c29254c2e8
DrawingAlgos Explicit Project DataType ( #526 )
...
I needed to add the data type to project for the scripts to compile.
2021-08-29 15:59:05 -07: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
a3f8c960ab
Change the FPS value in the spinbox when loading a project in an empty project
2021-08-25 16:37:09 +03:00
Manolis Papadeas
147a08f28b
Use outlines textures for tool cursor icons
...
Instead of using the AutoInvertColors shader
2021-08-18 15:06:10 +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
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
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
0d5e9ce48a
Fix crop image crashes on Windows and maybe also fixed buggy behavior?
...
Cropping images seem to be working fine now, or at least I haven't encountered any bugs so far
2021-07-21 01:24:39 +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
43bd054df6
Update translations
...
Hopefully the final translations for 0.9?
2021-06-30 00:01:39 +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
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
Laurenz Reinthaler
a899d2591d
Use CMD+Shift+H for showing the pixel grid on OSX ( #494 )
...
Co-authored-by: Laurenz Reinthaler <reinthalerlaurenz@gmail.com>
2021-06-15 13:03:19 -07: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
bdd06d42ce
Added tool button size option in the Preferences
2021-06-14 02:14:31 +03:00
Manolis Papadeas
20f5a063fd
Get palette colors from all selected cels
2021-06-13 18:27:48 +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
64e9d14a0e
Use Texture resources instead of Image for tool cursor icons
2021-05-31 21:39:33 +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