mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Editor] Expose more editor settings to documentation
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
This commit is contained in:
parent
83d54ab2ad
commit
dd6443193c
40 changed files with 283 additions and 81 deletions
|
@ -4624,21 +4624,7 @@ ScriptEditorPlugin::ScriptEditorPlugin() {
|
|||
window_wrapper->hide();
|
||||
window_wrapper->connect("window_visibility_changed", callable_mp(this, &ScriptEditorPlugin::_window_visibility_changed));
|
||||
|
||||
EDITOR_GET("text_editor/behavior/files/auto_reload_scripts_on_external_change");
|
||||
ScriptServer::set_reload_scripts_on_save(EDITOR_DEF("text_editor/behavior/files/auto_reload_and_parse_scripts_on_save", true));
|
||||
EDITOR_DEF("text_editor/behavior/files/open_dominant_script_on_scene_change", false);
|
||||
EDITOR_DEF("text_editor/external/use_external_editor", false);
|
||||
EDITOR_DEF("text_editor/external/exec_path", "");
|
||||
EDITOR_DEF("text_editor/script_list/script_temperature_enabled", true);
|
||||
EDITOR_DEF("text_editor/script_list/script_temperature_history_size", 15);
|
||||
EDITOR_DEF("text_editor/script_list/group_help_pages", true);
|
||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "text_editor/script_list/sort_scripts_by", PROPERTY_HINT_ENUM, "Name,Path,None"));
|
||||
EDITOR_DEF("text_editor/script_list/sort_scripts_by", 0);
|
||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "text_editor/script_list/list_script_names_as", PROPERTY_HINT_ENUM, "Name,Parent Directory And Name,Full Path"));
|
||||
EDITOR_DEF("text_editor/script_list/list_script_names_as", 0);
|
||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "text_editor/external/exec_path", PROPERTY_HINT_GLOBAL_FILE));
|
||||
EDITOR_DEF("text_editor/external/exec_flags", "{file}");
|
||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "text_editor/external/exec_flags", PROPERTY_HINT_PLACEHOLDER_TEXT, "Call flags with placeholders: {project}, {file}, {col}, {line}."));
|
||||
ScriptServer::set_reload_scripts_on_save(EDITOR_GET("text_editor/behavior/files/auto_reload_and_parse_scripts_on_save"));
|
||||
}
|
||||
|
||||
ScriptEditorPlugin::~ScriptEditorPlugin() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue