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

Allow auto-generated node names in PopupMenu::add_submenu_item #84668

Conversation

YuriSizov
Copy link
Contributor

Follow-up to #84617. After a bit of consideration, @akien-mga and I decided that it's best to allow the forbidden character. This is an ad-hoc way to address it, though exposing it on String would've been useful as well. But it's an exposed method there and I don't want to mess up things.

@YuriSizov YuriSizov added this to the 4.2 milestone Nov 9, 2023
@YuriSizov YuriSizov requested review from a team as code owners November 9, 2023 14:39
core/string/ustring.cpp Outdated Show resolved Hide resolved
@YuriSizov YuriSizov force-pushed the gui-dont-warn-when-popup-subs-are-nameless branch from c5b03ad to edcad2e Compare November 9, 2023 16:12
@raulsntos
Copy link
Member

Does this mean we should revert the naming of CSharpTools or is naming PopupMenu nodes still preferred?

@akien-mga
Copy link
Member

Does this mean we should revert the naming of CSharpTools or is naming PopupMenu nodes still preferred?

Explicit names are still preferred for this API. Ideally it shouldn't rely on names and just take node references, but for now we have to make do with this design.

@KoBeWi
Copy link
Member

KoBeWi commented Nov 9, 2023

I think we can rework the system to use references internally. The current method would stay for compatibility.

@akien-mga akien-mga merged commit c2246a5 into godotengine:master Nov 9, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov deleted the gui-dont-warn-when-popup-subs-are-nameless branch November 28, 2023 16:40
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.

4 participants