-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
[Editor] Expose more editor settings to documentation #93427
[Editor] Expose more editor settings to documentation #93427
Conversation
@@ -562,6 +568,10 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) { | |||
_initial_set("filesystem/on_save/compress_binary_resources", true); | |||
_initial_set("filesystem/on_save/safe_save_on_backup_then_rename", true); | |||
|
|||
// File server | |||
_initial_set("filesystem/file_server/port", 6010); |
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.
Should this have a range?
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.
Yes but with no_slider
.
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 there should probably be a range if there's a min and max for valid ports. I looked through the code a bit and we don't seem to do any validation for the port range currently in EditorFileServer/TCPServer/NetSocketPosix before passing it to the OS APIs.
|
||
// Script list | ||
_initial_set("text_editor/script_list/show_members_overview", true); | ||
_initial_set("text_editor/script_list/sort_members_outline_alphabetically", false); | ||
_initial_set("text_editor/script_list/script_temperature_enabled", true); | ||
_initial_set("text_editor/script_list/script_temperature_history_size", 15); |
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.
Should this have a range?
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.
I wouldn't bother here, unless very high numbers brick the editor.
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/skeleton", Color(1, 0.8, 0.4), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED) | ||
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/selected_bone", Color(0.8, 0.3, 0.0), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED) | ||
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/csg", Color(0.0, 0.4, 1, 0.15), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED) | ||
_initial_set("editors/3d_gizmos/gizmo_settings/bone_axis_length", (float)0.1); |
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.
Should this have a range?
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/csg", Color(0.0, 0.4, 1, 0.15), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED) | ||
_initial_set("editors/3d_gizmos/gizmo_settings/bone_axis_length", (float)0.1); | ||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/3d_gizmos/gizmo_settings/bone_shape", 1, "Wire,Octahedron"); | ||
EDITOR_SETTING_USAGE(Variant::FLOAT, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_settings/path3d_tilt_disk_size", 0.8, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED) |
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.
Should this have a range?
editor/editor_settings.cpp
Outdated
_initial_set("editors/grid_map/palette_min_width", 230); | ||
_initial_set("editors/grid_map/preview_size", 64); |
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.
Should these have ranges?
doc/classes/EditorSettings.xml
Outdated
The path to the text editor executable used to edit text files if [member text_editor/external/use_external_editor] is [code]true[/code]. | ||
</member> | ||
<member name="text_editor/external/use_external_editor" type="bool" setter="" getter=""> | ||
If [code]true[/code] opens an external editor instead of the built-in script editor. See also [member text_editor/external/exec_path] and [member text_editor/external/exec_flags]. |
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.
Depending on the desired behavior from:
This might need clarification
@@ -4596,9 +4596,6 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec | |||
set_process_input(true); | |||
set_process(true); | |||
|
|||
EDITOR_DEF("interface/editors/show_scene_tree_root_selection", true); | |||
EDITOR_DEF("interface/editors/derive_script_globals_by_name", true); | |||
EDITOR_DEF("docks/scene_tree/ask_before_deleting_related_animation_tracks", true); | |||
EDITOR_DEF("_use_favorites_root_selection", false); |
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.
Left this as it looks internal
_initial_set("editors/3d_gizmos/gizmo_settings/bone_axis_length", (float)0.1); | ||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/3d_gizmos/gizmo_settings/bone_shape", 1, "Wire,Octahedron"); |
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.
Should these be restart required? Don't know how they work
As I once mentioned in godotengine/godot-proposals#4771 (comment), I think it might be better to find a way to define properties in where they belong, but still allow doctools to find them. Though the current solution, for the sake of exposing the properties to documentation, is fine for now. |
bdee77b
to
4c44f91
Compare
4c44f91
to
0544022
Compare
0544022
to
3a1aa56
Compare
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.
My reviews above still stand, unless you disagree intentionally of course.
Will go over them, just pushed to fix conflicts |
b024e76
to
cd6e0a8
Compare
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.
Some of these descriptions still need to be filled but I wouldn't spend further time on this current PR doing that.
@@ -852,6 +852,7 @@ void GDScriptSyntaxHighlighter::_update_cache() { | |||
comment_marker_colors[COMMENT_MARKER_NOTICE] = Color(0.24, 0.54, 0.09); | |||
} | |||
|
|||
// TODO: Move to editor_settings.cpp |
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.
- See Editor: Document comment marker editor settings #96566 (only
text_editor/theme/highlighting/comment_markers/*
).
Will add the last suggestions later today and some of the descriptions can be elaborated on in future dedicated PRs by people with specific knowledge |
8d0fcd0
to
abf0b65
Compare
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
abf0b65
to
dd64431
Compare
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.
Let's merge this as a good first step, and we can iterate further on adding ranges or improving descriptions in later PRs.
Thanks! |
Thank you! |
Found quite a few editor settings that weren't declared in a way that allowed the doctool to find them. Haven't fully confirmed that moving these won't break anything, but it shouldn't.
Needing some help with the description for a number of the settings as I don't know what they do, but I've tried to fill them in as best I could.
Some of the settings I left where they were and added a comment, as I didn't know how to move them without possibly breaking them
The settings were copied over as closely as possible, converting to
_initial_set
and similar, should match correctly (I'm not 100% sure on the exact syntax to use in each case)