-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Sidebar upgrade #1894 #2350
Sidebar upgrade #1894 #2350
Conversation
- Character Events now suggest characters already in the timeline first. - Text Events now suggest characters already in the timeline first. - Text Events now place the most character from the most recent (relative to the text event) character event in the timeline first.
- character was shadowing from the outer scope, updated to event_character - More descriptive and less likely to shadow
- make character.get_character_name() return Unique Identifier if possible - add check to avoid error when a character event doesn't have a character set
- Now acknowleges character and text events. - Live updates! - Ignores null values in characters and text events. - Only searches up the timeline relevant to the current event.
…edfromlife/dialogic into better-character-suggestions
I would love if we could get single-click to open working again. I will try to rebase this on the main branch first though. |
Whether the sidebar is collapsed is now saved to editor state. Simplifies ResourceListItem class into a contained class (avoids the public class name). Also uses RefCounted to avoid having to free them manually. Some code cleanup.
@Jowan-Spooner |
Before merging this PR I would also like to add one more sort option, sorting by folders. Seems this would address a few issues including #2033 . |
I think it might also make sense to have an option to automatically collapse the Character and Timeline sections when switching to the character or timeline editors (so that you kinda only see the timelines when in timeline editor, but could still manually expand the character section). No need to add this though, it can also be done later. |
print_rich( | ||
( | ||
"[b]Updating resource list[/b]:\n\t [i]Resource List: [/i]%s\n\t[i]Resource List D: [/i]%s" | ||
% [resources_list, DialogicUtil.get_editor_setting("last_resources", [])] |
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.
This should be removed when the merge happens. This was me troubleshooting an issue that was caused by having the editor scenes open.
- Add icons to the SortMode dropdown - Simplify sorting code - Don't show right-click menu on "folder" items
@firedfromlife do you consider this ready for merging or would you like to continue working on this? The only "bug" I noticed was that if you have two folders with the same name, they get merged (e.g. if I have |
I would like to fix that bug, sorry been busy with work recently. Plan to work on the issue this weekend. |
fc6ab21
to
131623c
Compare
@Jowan-Spooner Alright, so I added another sort option called "Path" This works closer to what you recommended. It currently just prints the whole relative path as the folder name, which may not be ideal. I kept the "Folders" option working as before. I think this could be useful depending on how someone has their game organized. |
Hey @firedfromlife, I think we could potentially even implement using the folder colors set in the file system, not sure though (and not as part of this PR) |
Oops... I was already working on that. Haha. I also updated "Default to "Type" and "Path" now displays only the directory and the parent, if it has one. Colors can't be added to the "Folder" mode without making that its own setting, which would be possible, and I am not apposed to. It merges contents of multiple directories, so it has no way to determine which color it would use.
If we really wanted to add colors to the folder option, we could add it like so:
I think this would be worth adding, and it would be (hopefully) simple enough to add to the existing right click menu for the sidebar. Not pushing changes yet, still cleaning up some messy debug code. |
@firedfromlife Oh nice. I think for now showing the file system folder colors in the "Path" option would be enough. Should we also change the background color of the files then, like the file system does it? Maybe slighly less opaque? Thanks for all the work on this. |
@Jowan-Spooner Let me know if it looks good to you 👍 |
@firedfromlife Thank you so much for all this work. I will test it again over the next days. |
It looks good to me. I'd like to simplify some of the code, but I think I'll do that in a follow-up PR. These are working pretty well and while there are some further improvements that I feel could be great this is already so much better then before. Thank you very much! |
PR for: "Editor: Better Resource List + Sidebar" #1894
Notes: