1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 09:39:48 +00:00
Commit graph

45 commits

Author SHA1 Message Date
OverloadedOrama cab50a83ff Attempting to fix the mess created by renaming files 2020-04-30 17:14:31 +03:00
OverloadedOrama 5b3c846e72 Revert "Big changes to timeline buttons"
This reverts commit e05fc26f5a.
2020-04-30 16:45:46 +03:00
OverloadedOrama e05fc26f5a Big changes to timeline buttons
They're no longer TextureButtons, but Buttons with TextureRect as children. This makes it easier to make them work for multiple themes, and we also save some disk space.

More buttons will follow soon.
2020-04-30 16:36:00 +03:00
OverloadedOrama a14e928031 On play_animation(), disconnect the other button's toggled signal temporarily - This fixes #219 2020-04-24 00:10:21 +03:00
OverloadedOrama 84e822bb44 Made Onion Skinning Settings dialog bigger - Fixes #220 2020-04-23 23:25:12 +03:00
OverloadedOrama 85bdffa322 If linked cels existed when a frame got deleted, they now get removed from memory
It basically loops through the layers and, if some cels are linked, they get deleted from the Global.layers array. Closes #218
2020-04-23 01:46:16 +03:00
OverloadedOrama f7b9d22991 On merge layer, linked cels on the bottom layer will become unlinked if the top cels have content
Works with UndoRedo too
2020-04-22 16:56:03 +03:00
OverloadedOrama 06d19c8e48 Frame tags now work with UndoRedo 2020-04-20 00:09:48 +03:00
OverloadedOrama 9cb98a443e Delete frames from tags if the frames are deleted
And also move tags if frames before their first frame are deleted. Doesn't work with UndoRedo yet.
2020-04-19 21:00:36 +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 4e539e5e29 Removed remove_frame() from FrameButton.gd
Use _on_DeleteFrame_pressed() on AnimationTimeline.gd instead
2020-04-18 00:35:42 +03:00
OverloadedOrama 954b6111c2 Cloned frames are now automatically part of the tag
The tags don't work with UndoRedo yet, so this is not final behavior
2020-04-17 04:59:23 +03:00
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 40e7a0aed9 Don't let tag_to be larger than Global.canvases.size(), and smaller than tag_from
Also, when adding an new tag, the starting and ending frame values become the current frame.
2020-04-16 03:00:40 +03:00
Schweini07 acff84c5b1
Add a Delete Button and a Copy Button for frames (#202) 2020-04-15 20:59:49 +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
OverloadedOrama 3f1c81ac13 Fixed crash when creating a new image and a layer had opacity less than 100%
Caused in CreateNewImage.gd, Global.current_layer = 0 should be under Global.canvas gets set to a new canvas, and after its _ready() method gets executed. The crash occurred when a layer above 0 had transparency less than 100, and a new image was created. _on_OpacitySlider_value_changed() in AnimationTimeline.gd was executed on the old canvas right before it was destroyed, while Global.layers had been cleared.

Also removed _on_OpacitySlider_value_changed() from Main.gd, it served no purpose there.
2020-04-11 05:36:51 +03:00
novhack e8c6025c46 Add gif export plugin and extend export dialog with GIF animation support. 2020-04-06 18:51:47 +02: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
OverloadedOrama 3ca1d00b98 Added a tag button in the timeline
Creates a new frame tag for now, it will be changed to manage all tags
2020-04-05 00:35:11 +03:00
OverloadedOrama b4a312d702 Made the onion skinning settings popup appear next to the "expand" button 2020-04-03 15:52:34 +03:00
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 b62d961e1e Onion skinning settings have been moved to a popup window
You can open the settings from a new button next to the onion settings button.
2020-03-31 19:14:13 +03:00
OverloadedOrama bc683bab2c Animation loops by default, icon changes
Changed the icon when animation is not looping, and added hover textures.
2020-03-31 18:53:26 +03:00
OverloadedOrama 1214b6b9d0 Fixed issues with merging layers 2020-03-28 15:56:01 +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 a439fc12e0 Fixed issue with merging layers & undoing, and then drawing again 2020-03-22 02:38:39 +02:00
OverloadedOrama 772e16bb4d Fixed issue with merge down layer, the other frames were not being updated 2020-03-22 00:29:47 +02:00
OverloadedOrama fd0069d2e5 Append new linked cells to Global.layers[i][5]
Append the Canvas nodes instead of frame ints
2020-03-18 02:56:29 +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 e71f76d8ee Fixed crash when changing FPS 2020-03-10 00:47:21 +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 321ac978f1 Fixed crash when removing the first layer
Global.current_layer was being set to -1
2020-03-08 21:25:09 +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 adcacaa8cb Merging layers works
This should be all of the layer functionality restored. Frame functionality will soon follow.
2020-03-07 16:43:25 +02:00
OverloadedOrama 4e31c1ed4b Changing layer order works again
Started using a setter method for Global.current_layer
2020-03-07 16:43:24 +02:00
OverloadedOrama 6557d3aeac Clone layer is now functional 2020-03-07 16:43:23 +02:00
OverloadedOrama 60aed9efba Use setter method for layers to update the UI
Instead of updating it in undo and redo methods
2020-03-07 16:43:22 +02:00
OverloadedOrama 2bfae68755 Implemented Remove Layer - Doesn't work properly yet 2020-03-07 16:43:21 +02:00
OverloadedOrama bb6e2cbf16 Layer images are now unique to each frame 2020-03-07 16:43:21 +02:00
OverloadedOrama a2893e1c1c Store layer visibility on Global.layers instead
This way, toggling visibility in a layers works for all frames in that layer.
2020-03-07 16:43:19 +02:00
OverloadedOrama 953d002d91 [EXPERIMENTAL] Re-making the timeline
Trying to merge layers into the timeline, and eventually add more features like "share layer with all frames", among others. THIS IS NOT FINISHED, IT WILL *NOT* WORK PROPERLY. Once it is finished, this branch will be merged onto master.

So far only add layer and add frame work, and even they may have some issues. Undoing also does not work properly yet.

The UI is also not finished, as it currently has problems with the scroll containers.
2020-03-07 16:43:17 +02:00
OverloadedOrama 7a3f3eb4f9 Made AnimationTimeline a scene of its own 2020-01-15 22:01:43 +02:00