-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Improve how Project & Editor Settings look in built-in docs #89086
Improve how Project & Editor Settings look in built-in docs #89086
Conversation
fa87835
to
fc617eb
Compare
editor/editor_help.cpp
Outdated
String setting_name = link_target.trim_prefix("ProjectSettings.").trim_prefix("EditorSettings."); | ||
PackedStringArray setting_sections; | ||
for (const String §ion : setting_name.split("/", false)) { | ||
setting_sections.append(EditorPropertyNameProcessor::get_singleton()->process_name(section, EditorPropertyNameProcessor::STYLE_CAPITALIZED)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're opening a can of worms here :)
Two things would need to be taken into account:
- Localization
- The configured capitalization style (
EditorPropertyNameProcessor::get_settings_style()
)
CC @timothyqiu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, using EditorPropertyNameProcessor::get_settings_style()
would solve both. It takes localization into account.
fc617eb
to
e9cbafa
Compare
e9cbafa
to
8e10245
Compare
Should be good now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
We should probably make a similar change to |
Thanks! |
TL:DR:
Code could be better but it does work!