|
@@ -1741,10 +1741,10 @@ void ScriptEditor::_update_help_overview() {
|
|
|
|
|
|
void ScriptEditor::_update_script_colors() {
|
|
void ScriptEditor::_update_script_colors() {
|
|
|
|
|
|
- bool script_temperature_enabled = EditorSettings::get_singleton()->get("text_editor/open_scripts/script_temperature_enabled");
|
|
|
|
- bool highlight_current = EditorSettings::get_singleton()->get("text_editor/open_scripts/highlight_current_script");
|
|
|
|
|
|
+ bool script_temperature_enabled = EditorSettings::get_singleton()->get("text_editor/script_list/script_temperature_enabled");
|
|
|
|
+ bool highlight_current = EditorSettings::get_singleton()->get("text_editor/script_list/highlight_current_script");
|
|
|
|
|
|
- int hist_size = EditorSettings::get_singleton()->get("text_editor/open_scripts/script_temperature_history_size");
|
|
|
|
|
|
+ int hist_size = EditorSettings::get_singleton()->get("text_editor/script_list/script_temperature_history_size");
|
|
Color hot_color = get_color("accent_color", "Editor");
|
|
Color hot_color = get_color("accent_color", "Editor");
|
|
Color cold_color = get_color("font_color", "Editor");
|
|
Color cold_color = get_color("font_color", "Editor");
|
|
|
|
|
|
@@ -1759,7 +1759,7 @@ void ScriptEditor::_update_script_colors() {
|
|
|
|
|
|
bool current = tab_container->get_current_tab() == c;
|
|
bool current = tab_container->get_current_tab() == c;
|
|
if (current && highlight_current) {
|
|
if (current && highlight_current) {
|
|
- script_list->set_item_custom_bg_color(i, EditorSettings::get_singleton()->get("text_editor/open_scripts/current_script_background_color"));
|
|
|
|
|
|
+ script_list->set_item_custom_bg_color(i, EditorSettings::get_singleton()->get("text_editor/script_list/current_script_background_color"));
|
|
|
|
|
|
} else if (script_temperature_enabled) {
|
|
} else if (script_temperature_enabled) {
|
|
|
|
|
|
@@ -1792,9 +1792,9 @@ void ScriptEditor::_update_script_names() {
|
|
}
|
|
}
|
|
|
|
|
|
script_list->clear();
|
|
script_list->clear();
|
|
- bool split_script_help = EditorSettings::get_singleton()->get("text_editor/open_scripts/group_help_pages");
|
|
|
|
- ScriptSortBy sort_by = (ScriptSortBy)(int)EditorSettings::get_singleton()->get("text_editor/open_scripts/sort_scripts_by");
|
|
|
|
- ScriptListName display_as = (ScriptListName)(int)EditorSettings::get_singleton()->get("text_editor/open_scripts/list_script_names_as");
|
|
|
|
|
|
+ bool split_script_help = EditorSettings::get_singleton()->get("text_editor/script_list/group_help_pages");
|
|
|
|
+ ScriptSortBy sort_by = (ScriptSortBy)(int)EditorSettings::get_singleton()->get("text_editor/script_list/sort_scripts_by");
|
|
|
|
+ ScriptListName display_as = (ScriptListName)(int)EditorSettings::get_singleton()->get("text_editor/script_list/list_script_names_as");
|
|
|
|
|
|
Vector<_ScriptEditorItemData> sedata;
|
|
Vector<_ScriptEditorItemData> sedata;
|
|
|
|
|
|
@@ -2318,7 +2318,7 @@ void ScriptEditor::_editor_settings_changed() {
|
|
convert_indent_on_save = EditorSettings::get_singleton()->get("text_editor/indent/convert_indent_on_save");
|
|
convert_indent_on_save = EditorSettings::get_singleton()->get("text_editor/indent/convert_indent_on_save");
|
|
use_space_indentation = EditorSettings::get_singleton()->get("text_editor/indent/type");
|
|
use_space_indentation = EditorSettings::get_singleton()->get("text_editor/indent/type");
|
|
|
|
|
|
- members_overview_enabled = EditorSettings::get_singleton()->get("text_editor/open_scripts/show_members_overview");
|
|
|
|
|
|
+ members_overview_enabled = EditorSettings::get_singleton()->get("text_editor/script_list/show_members_overview");
|
|
help_overview_enabled = EditorSettings::get_singleton()->get("text_editor/help/show_help_index");
|
|
help_overview_enabled = EditorSettings::get_singleton()->get("text_editor/help/show_help_index");
|
|
_update_members_overview_visibility();
|
|
_update_members_overview_visibility();
|
|
_update_help_overview_visibility();
|
|
_update_help_overview_visibility();
|
|
@@ -3129,7 +3129,7 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
|
|
waiting_update_names = false;
|
|
waiting_update_names = false;
|
|
pending_auto_reload = false;
|
|
pending_auto_reload = false;
|
|
auto_reload_running_scripts = true;
|
|
auto_reload_running_scripts = true;
|
|
- members_overview_enabled = EditorSettings::get_singleton()->get("text_editor/open_scripts/show_members_overview");
|
|
|
|
|
|
+ members_overview_enabled = EditorSettings::get_singleton()->get("text_editor/script_list/show_members_overview");
|
|
help_overview_enabled = EditorSettings::get_singleton()->get("text_editor/help/show_help_index");
|
|
help_overview_enabled = EditorSettings::get_singleton()->get("text_editor/help/show_help_index");
|
|
editor = p_editor;
|
|
editor = p_editor;
|
|
|
|
|
|
@@ -3554,15 +3554,15 @@ ScriptEditorPlugin::ScriptEditorPlugin(EditorNode *p_node) {
|
|
EDITOR_DEF("text_editor/files/open_dominant_script_on_scene_change", true);
|
|
EDITOR_DEF("text_editor/files/open_dominant_script_on_scene_change", true);
|
|
EDITOR_DEF("text_editor/external/use_external_editor", false);
|
|
EDITOR_DEF("text_editor/external/use_external_editor", false);
|
|
EDITOR_DEF("text_editor/external/exec_path", "");
|
|
EDITOR_DEF("text_editor/external/exec_path", "");
|
|
- EDITOR_DEF("text_editor/open_scripts/script_temperature_enabled", true);
|
|
|
|
- EDITOR_DEF("text_editor/open_scripts/highlight_current_script", true);
|
|
|
|
- EDITOR_DEF("text_editor/open_scripts/script_temperature_history_size", 15);
|
|
|
|
- EDITOR_DEF("text_editor/open_scripts/current_script_background_color", Color(1, 1, 1, 0.3));
|
|
|
|
- EDITOR_DEF("text_editor/open_scripts/group_help_pages", true);
|
|
|
|
- EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "text_editor/open_scripts/sort_scripts_by", PROPERTY_HINT_ENUM, "Name,Path,None"));
|
|
|
|
- EDITOR_DEF("text_editor/open_scripts/sort_scripts_by", 0);
|
|
|
|
- EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "text_editor/open_scripts/list_script_names_as", PROPERTY_HINT_ENUM, "Name,Parent Directory And Name,Full Path"));
|
|
|
|
- EDITOR_DEF("text_editor/open_scripts/list_script_names_as", 0);
|
|
|
|
|
|
+ EDITOR_DEF("text_editor/script_list/script_temperature_enabled", true);
|
|
|
|
+ EDITOR_DEF("text_editor/script_list/highlight_current_script", true);
|
|
|
|
+ EDITOR_DEF("text_editor/script_list/script_temperature_history_size", 15);
|
|
|
|
+ EDITOR_DEF("text_editor/script_list/current_script_background_color", Color(1, 1, 1, 0.3));
|
|
|
|
+ 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));
|
|
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}");
|
|
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}."));
|
|
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}."));
|