-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
Reference Image Improvements #961
Conversation
Fixed static typing in "src\UI \ReferenceImages\ReferenceEditPanel.gd" Changed "ri == null" to "!ri" in "src\UI\Canvas\ReferenceImages.gd"
Removed lambda functions for the confirmation dialog. Removed irrelevant print statement.
I think its fixed now
Added the ability to drag and drop Reference Images similar to dragging and dropping layers. These can be dragged or used with buttons (similar to the buttons that move frames). With full undo/redo support. Added tool buttons these should help people who draw on tablets that cannot use keyboard shortcuts (icons still need to be created) Renamed ReferenceEditPanel.gd to ReferenceEdit.gd (because it is no longer the script of a panel) and changed the base class of the Reference Panel. Added some more translations. Remade ReferenceImageButton.tscn to allow for drag and drop Added drag highlight
Added icons for the tools of the Reference Images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asset file names should be in snake_case
(all lowercase, underscores instead of spaces) as per CONTRIBUTING.md. If Godot complains while renaming, it's because Windows is not case sensitive. As a workaround, you can first rename it to something like "move_.png", and then "move.png". Same for the rest of the files.
Also added the correct translations
I found a bug where, if you import a reference image and then create a new project, that reference image is still visible even when switching projects. The reference images panel also doesn't seem to be updating when switching projects, it always displays the reference images of the project that the last reference image was imported to. Apart from that, I think it looks good. |
Also fixed visual bugs related to highlighting the current reference image. Made it so the reference image that was selected in a project get selected again when the project opens instead of going back to -1 (nothing)
The logic for switching reference images and updating the UI is implemented but I believe I accidently removed the code in Project.gd that calls the updateing code was deleted (by me) on accident. The bug should be fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
This pull request aims to improve the useability of reference images by adding features such as: