Skip to content
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

Dictionary Editor: Keep the type of the last added item. #88636

Merged

Conversation

ajreckof
Copy link
Member

This is a small step towards #76078

This avoid selecting the type of the key and value each time you want to add an element. This one of the most wanted feature and also one of the easiest towards #76078

@ajreckof ajreckof mentioned this pull request Feb 21, 2024
8 tasks
@AThousandShips AThousandShips added this to the 4.x milestone Feb 21, 2024
@AThousandShips AThousandShips changed the title Dictionary Editor : keep the type of the last added item. Dictionary Editor: Keep the type of the last added item. Feb 21, 2024
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works as expected.

simplescreenrecorder-2024-02-21_20.07.01.mp4

Code looks good to me.

For a future PR, we should look into disabling the Add Key/Value Pair button (with a tooltip explaining why) until a type other than Nil is assigned to the key.

Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If my thumbs up counts for anything.

@ajreckof
Copy link
Member Author

Tested locally, it works as expected.

simplescreenrecorder-2024-02-21_20.07.01.mp4
Code looks good to me.

For a future PR, we should look into disabling the Add Key/Value Pair button (with a tooltip explaining why) until a type other than Nil is assigned to the key.

This is planned but not only for null but also for already existing key.

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Feb 22, 2024
@akien-mga akien-mga merged commit b82bd22 into godotengine:master Feb 22, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants