1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-23 14:03:13 +00:00
Commit graph

172 commits

Author SHA1 Message Date
OverloadedOrama
09d2265056 Made Unlink Cel work with UndoRedo 2020-04-21 21:34:45 +03:00
Igor Santarek
086679f1f0
Open last edited project at startup or at will feature (#215)
* Created feature that will alllow user to open last edited project on Pixelorama startup or open last edited project at will.

Co-authored-by: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com>
2020-04-21 20:45:02 +03:00
OverloadedOrama
fef7627f73 Made the animation stop playing on clear_canvases()
This stop the animation from playing when a new image is being created, or a file is being loaded.
2020-04-21 19:42:01 +03:00
OverloadedOrama
c737ff3589 Canvas background gets resized on frame_changed
In case frames have different sizes. Also solved issue when opening files and they had a different size than the currently selected image.
2020-04-21 04:29:39 +03:00
OverloadedOrama
79a4c0232e Minor TransparentChecker performance boost
Got rid of its _process, using _ready() instead. It also gets called when the canvas size changes, or the checker settings in the preferences change.
2020-04-20 19:12:22 +03:00
OverloadedOrama
06d19c8e48 Frame tags now work with UndoRedo 2020-04-20 00:09:48 +03:00
OverloadedOrama
cb1b741b05 Made general undo and redo methods in Global.gd
To reduce some duplicate code, and they will most likely be needed for frame tags UndoRedo
2020-04-19 21:17:33 +03:00
OverloadedOrama
ba2b8aae91 Changes on how animation plays on frame tags
If the animation starts playing on a frame outside a tag, the animation will not limit itself to the tags later on as it plays. The animation will play only on a tag, if it started on a frame which has that tag. I also made it react to frame and tag changes, if they happen while the animation is running.

I also added a play_animation() method in AnimationTimeline.gd, to reduce duplicate code found in _on_PlayForward_toggled() and _on_PlayBackwards_toggled()
2020-04-19 20:39:08 +03:00
OverloadedOrama
53a9719230 Removed old transparent background & made some tooltip changes
The transparent background has been removed both from code and its files. Changed some hint_tooltips and put them in Translations.pot too.
2020-04-18 18:36:29 +03:00
Kinwailo
2ae67cdb76 Improve the checker board of transparent background 2020-04-18 15:03:18 +08:00
luiq54
73891af597 Brush Selection Fix 2020-04-17 22:33:52 +05:30
OverloadedOrama
a3b01873a2 When cloning a frame, the clone appears next to the cloned
Removed some code from FrameButton.gd since it's used in AnimationTimeline.gd, and removed the Global.hidden_canvases array, as... it did nothing? I don't remember what I made it for, I think it was for UndoRedo purposes but it's seems to be working fine without it.
2020-04-17 04:25:08 +03:00
OverloadedOrama
4068330e26 Improved "Fit to Frame" button
Also set the default mode for the right zoom tool to zoom out.
2020-04-16 18:34:57 +03:00
novhack
840b83fee7 Add color switch shortcut to preferences. 2020-04-15 20:52:20 +02:00
OverloadedOrama
bdd3cdf45e Improved the "fit to frame" zoom button
The resulting camera zoom now depends on the window size. More specifically, the main viewport's x size. This formula is purely trial-and-error, and it may not work perfectly, or properly for some screen sizes.

If anyone wants to improve it, feel free to do so!
2020-04-13 16:39:18 +03:00
sapient_cogbag
11a7261ef1
Made arrow keys (with shift and control for speedup) work ^.^ nyaaa 2020-04-13 08:55:01 +01:00
OverloadedOrama
21dd3f2e2d Added a zoom tool
Makes it easier to zoom for people with tablets and touch screens in general
2020-04-13 05:07:52 +03:00
OverloadedOrama
354dffd98b Added MatheusPese & sapient-cogbag to contributors
Also some code space clearings & removed empty methods and comments in XDGDataPaths.gd
2020-04-13 01:40:26 +03:00
Manolis Papadeas
0046856b0f
Merge pull request #197 from sapient-cogbag/xdg-standard
XDG basedir standard on X11 Godot platforms
2020-04-13 01:23:55 +03:00
OverloadedOrama
7824b13335 Changed hint_tooltips from the old string formats to actual sentences
Besides the timeline buttons and color switch button being ready to have their changed shortcuts (when we implement them for these buttons) in their hint tooltips, there is no new functionality. This is merely to make the lives of translators easier.

This is the final commit of weird string IDs being replaced to actual sentences in Translations.pot
2020-04-12 19:50:14 +03:00
sapient_cogbag
516723d125
Merge branch 'master' of https://github.com/Orama-Interactive/Pixelorama into xdg-standard
Getting ourselves up to date with upstream for easy merge! nya ^.^
2020-04-11 23:38:53 +01:00
OverloadedOrama
ba8d01333e Changed hint_tooltips for the tool buttons, they now change based on selected keybindings 2020-04-12 00:08:45 +03:00
OverloadedOrama
4c9a58a333 Animation only plays on frames of the same tag
If there are no tags, the animation plays on all frames, as before. Currently no front-end way of toggling this behavior.
2020-04-11 20:10:07 +03:00
sapient_cogbag
b2eafc5464
CANT GET THE PROGRAM TO REGISTER THAT WE'RE ON LINUX >:( nyaaaa 2020-04-11 07:58:58 +01:00
sapient_cogbag
1593c5c12b
Set up xdg thing, now for the loader modification nyaa ^.^ 2020-04-11 03:13:35 +01:00
sapient_cogbag
89c125a4a9
started thing 2020-04-10 22:47:06 +01:00
novhack
99f847e732 Add ZSTD compression to save files. Move clear_canvases() to Global.gd 2020-04-10 00:06:24 +02:00
OverloadedOrama
943e20a0de Fixed crash on Linux with layer containers
When the user clicked on a layer container to change its name and then clicked away, the program crashed. This was because the name of the layer was changed (`Global.layers[i][0] = new_name`), and Global.layers_changed() was being called, which removed all of the layer container UI and re-created it.

This is unneeded to happen when only the layer name changes, so I added a boolean to skip the execution of the method.

Oddly enough, the crash was not happening on Windows (at least on my end) and it was working as expected. Godot's output terminal was not showing any error messages, either.
2020-04-06 18:35:54 +03:00
OverloadedOrama
1e9d44fffc You can now delete tags 2020-04-06 01:07:28 +03:00
OverloadedOrama
cf55c9167f Changed FrameTagDialog and made it its own scene
The way frames are being added has changed, and now you can modify existing tags too. Deletion will come soon.
2020-04-06 00:51:46 +03:00
Manolis Papadeas
f2ed5ade8a
Merge pull request #182 from luiq54/fake_rotsprite
Rotsprite-like Rotation
2020-04-03 20:44:18 +03:00
luiq54
e92b2b3bab Implement fake_rotsprite 2020-04-03 22:27:42 +05:30
OverloadedOrama
ce94b9fcc2 Added texture for the onion skinning button for when it's disabled 2020-04-03 15:34:16 +03:00
OverloadedOrama
53338e4310 Basic UI for animation frame tags
You can add tags by right clicking on a cel and selecting "Add Frame Tag". No tag modifying and deletion is implemented yet.

I'm using a different ScrollContainer for the tags, which gets updated everytime the main timeline ScrollContainer gets updated. I hide its sliders from its theme, wish there was a more straightforward way.
2020-04-02 03:29:14 +03:00
OverloadedOrama
61c4ea7aa1 Major UI changes in Main.tscn
More changes will happen
2020-03-27 03:40:23 +02:00
OverloadedOrama
07db587b6c Timeline UI changes
The onion skinning button replaces the old onion skinning area of the timeline, but there's no way right now to change the settings. This will be added in a future commit. More UI changes will soon follow.
2020-03-26 20:56:30 +02:00
OverloadedOrama
278c9facb2 Changed some hint_tooltips
I'm trying to remove all the weird "_HT" strings and replace them with actual sentences instead. This will make it easier for translators
2020-03-26 03:24:25 +02:00
OverloadedOrama
a60efccbfd Added a boolean to check if new frames will be linked and an array of linked frames to Global.layers
This doesn't add any new functionality right now
2020-03-14 21:40:10 +02:00
OverloadedOrama
7d12f1fccc Backend implementation of an isometric grid
An attempt to draw an isometric grid. It behaves oddly on non-square canvas sizes, and on some grid sizes. For this reason, I'm not sure if it will be implemented in v0.7.

To test it, set Global.grid_type = Global.Grid_Types.ISOMETRIC
2020-03-12 04:17:48 +02:00
OverloadedOrama
825e06f98a Fixed issue where the remove layer button was not disabled when there was only one layer left 2020-03-11 00:01:12 +02:00
OverloadedOrama
550da1e961 Can't delete and apply effects to locked layers
By effects I mean the selections of the Image menu
2020-03-10 01:42:50 +02:00
OverloadedOrama
d64b4edb96 Notification labels appear on top of the timeline 2020-03-09 16:59:17 +02:00
OverloadedOrama
7a008cfc3f Implemented locking/unlocking layers
When a layer is locked, no changes can be made to it.
2020-03-09 03:26:13 +02:00
OverloadedOrama
1e5c674673 Fixed spacing between some comments 2020-03-09 02:17:49 +02:00
OverloadedOrama
6b73c59a8f Removed some commented code 2020-03-08 22:12:18 +02:00
OverloadedOrama
b9b0d3e1b3 Small UI improvement - The visibility icon will remain in a fixed place no matter how long the layer name is. 2020-03-08 21:57:22 +02:00
OverloadedOrama
0619d0e1ad Opening and saving .pxo file should now work
This should be all of the functionality restored. This commit makes the branch stable, in theory.
2020-03-07 16:43:28 +02:00
OverloadedOrama
4969978f46 Fix issue with frame moving and current_frame not changing
This bug actually originates from before the timeline remake and can be found in v0.6.2 and potentially earlier versions.
2020-03-07 16:43:27 +02:00
OverloadedOrama
2a5dfa7ea2 The selected cel (?) is now pressed, based on current layer and frame
All the other buttons are pressed = false. Also removed some legacy code.
2020-03-07 16:43:26 +02:00
OverloadedOrama
87629fdf2f The selected layer's buttons are now pressed
The unselected layers's buttons are pressed = false
2020-03-07 16:43:26 +02:00