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

Add indicator for StringName properties #77521

Merged

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented May 26, 2023


Previously they were the same and you couldn't tell what type it is.

@@ -108,6 +108,11 @@ void EditorPropertyText::update_property() {

void EditorPropertyText::set_string_name(bool p_enabled) {
string_name = p_enabled;
if (p_enabled) {
Label *prefix = memnew(Label("&"));
Copy link
Member

Choose a reason for hiding this comment

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

Can this label have a tooltip? Not sure it will be explicit enough what the & is without it.

Suggested change
Label *prefix = memnew(Label("&"));
Label *prefix = memnew(Label("&"));
prefix->set_tooltip_text("StringName");

Copy link
Member Author

Choose a reason for hiding this comment

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

image

@KoBeWi KoBeWi force-pushed the to_StringName_or_not_to_StringName branch from 4842770 to 54be252 Compare May 26, 2023 15:49
@akien-mga akien-mga modified the milestones: 4.x, 4.1 May 26, 2023
@akien-mga akien-mga merged commit 2210111 into godotengine:master May 26, 2023
@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.

2 participants