-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Change dictionary editor #76078
base: master
Are you sure you want to change the base?
Change dictionary editor #76078
Conversation
9a38f88
to
0696453
Compare
Okay, the idea with swapping the key label with the property editor is pretty clever! You can only edit one key, too, so it's never confusing. There are some bugs:
I had some personal issues, but this is up to discussion as others may not find them significant:
Overall, great job! All stable so far in my testing (might test it more extensively later). As someone who was so annoyed as to try fix it via addon, I'm really looking forward to seeing this in core! |
Can you show pictures of your implemented feature in the description? |
0696453
to
94c5e76
Compare
I was aware of this one but I do not know how to make it more clear. This was one of the reasons i kept the text right aligned because without it, it would be even worst aas their would be no difference at all. If you have any idea on how to make it clearer, I would be really interested.
forgot to reinitialize the type after zeroing it is fixed now
This bug gave me heavy sweat but once i finally debugged it. I found out it wasn't a bug I introduced. But a bug that was already there I'll make a separate issue and PR for this one as it is more a bug of
I added some picture and a small video |
I imagined the bottom editor would move to become the "top editor". Like with inline editors having key on the left and value at the right, I imagine with the value staying at the bottom and key at the top. Though I wonder if it's even possible to place the bottom editor before the inline. If it's not, then aligning the label to the right would indeed be a good workaround. Or could even stay like that either way: on my mock-up above the key+value pair isn't as clearly in key-edit mode (only the "edit" button hints at the connection). For comparison, both: |
That would be effectively be pretty good but I'm not sur how to do that, to revert from left to right I hijacked the right to left functionality that was developed for language support |
What's the behavior for right to left languages, then? |
Thanks for the PR, can we unify the value editing process like Array? i.e. Click As shown in multiple places as well as godotengine/godot-proposals/#5775, Editing values only to forget to click |
I just had an idea for that while trying to explain what I was thinking to reduce this problem. Tell me what you think about it. My new would i think mostly resolve the problem. |
implements godotengine/godot-proposals#5775
This is a huge refactor of the dictionary editor.
Edit : as this was too big of a refactor as a monolithic PR I decided to split as small steps I will keep updated below what has already been done with the linked PR
What has been done :
It is recommended to test this PR with #75482 as it gives better readability. The two PR do not have real conflicts so you should have no problem merging them but for simplicity you can find an already merged version here -> https://github.com/ajreckof/godot/tree/change_dict_editor_+_colored_margin
Enregistrement2.mp4
with #75482 :
without #75482 :
Popup when editing value:
Popup when editing key: