-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Duplicate button and context menu to the SpriteFrames editor #3942
Comments
Fortunately, because .tres files are inherently text resources, it's possible to mitigate this issue by saving the SpriteFrames on disk, opening the resource as text and copy-pasting the desired animation. It may look like something this: |
Thanks for posting a workaround! It is hard to know what can be changed like this and what can't. Like renaming a file makes changes in multiple .tres files, if you only did the change in 1 file it would break your project. I am glad to know this can be edited this way safely. |
Also ability to select multiple frames for different operations would be nice, including copy-pasting them into another animation as a workaround to this issue. |
Your suggestion is not related to this proposal and you may want to open another one. But if it is of any consolation, the implementation took steam again and should be good to merge for 4.4 |
Describe the project you are working on
Game Jam
Describe the problem or limitation you are having in your project
Creating Animations for an AnimatedSprite node is missing the duplicate feature that the rest of the UI has.
Create an AnimatedSprite node and edit its "SpriteFrames".
Above the animations are buttons for [New Animation] and [Remove Animation] but it is missing a [Duplicate Animation]
Right clicking an animation, doesn't bring up a context menu.
The context menu should at least list [Duplicate Animation] and [Remove Animation].
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Some animations are really complicated, which is why there is a dedicated tool to edit them. To have a new animation with just 1 change, you currently have to restart from scratch for each animation which can take a long time for a single animation, let alone if you have to do this 20 times.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Edit the "SpriteFrames" of an AnimatedSprite and try to open the right click context menu on an Animation. There should be a Duplicate option.
If this enhancement will not be used often, can it be worked around with a few lines of script?
Some animations are really complicated, which is why there is a dedicated tool to edit them. To have a new animation with just 1 change, you currently have to restart from scratch for each animation which can take a long time for a single animation, let alone if you have to do this 20 times.
Is there a reason why this should be core and not an add-on in the asset library?
In the Scene Tab, you can right click a node to get a context menu with a Duplicate option.
In the FileSystem Tab, you can right click a file to get a context menu with a Duplicate... option.
In the Animations Tab for AnimatedSprite, you can NOT right click an animation to get a context menu with a Duplicate option.
The text was updated successfully, but these errors were encountered: