Add button to toggle Unique Name when renaming Node #64609
Draft
+157
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes godotengine/godot-proposals#4498.
This PR adds a Unique Name button while renaming a Node in the Scene Tree Editor, present to the side of the edited Node. When a Node is Unique, the toggle remains even when leaving the text editor and is highlighted more noticeably.
Currently a draft because... oh good Lord do not look at the code. To get these features, the changes had to be very invasive and, in lack of better words, unpolished. (E.g. the Popup is now a simpler Window, otherwise clicking outside it would automatically close it). Submitting names with keys no longer even works anymore. But I may just be very stupid. Its implementation may likely be completely overhauled at some point down the line.