Skip to content

Commit

Permalink
Merge pull request #89599 from timothyqiu/vegetate
Browse files Browse the repository at this point in the history
Fix unexpected auto translation of editor `Tree` content
  • Loading branch information
akien-mga authored Mar 24, 2024
2 parents 9a8fb26 + 8cd1ebb commit 0537277
Show file tree
Hide file tree
Showing 37 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions editor/animation_track_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7569,6 +7569,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
track_copy_vbox->add_child(select_all_button);

track_copy_select = memnew(Tree);
track_copy_select->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
track_copy_select->set_h_size_flags(SIZE_EXPAND_FILL);
track_copy_select->set_v_size_flags(SIZE_EXPAND_FILL);
track_copy_select->set_hide_root(true);
Expand Down
1 change: 1 addition & 0 deletions editor/connections_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ ConnectDialog::ConnectDialog() {

method_tree = memnew(Tree);
method_vbc->add_child(method_tree);
method_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
method_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
method_tree->set_hide_root(true);
method_tree->connect("item_selected", callable_mp(this, &ConnectDialog::_method_selected));
Expand Down
2 changes: 2 additions & 0 deletions editor/create_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ CreateDialog::CreateDialog() {
vsc->add_child(fav_vb);

favorites = memnew(Tree);
favorites->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
favorites->set_hide_root(true);
favorites->set_hide_folding(true);
favorites->set_allow_reselect(true);
Expand Down Expand Up @@ -823,6 +824,7 @@ CreateDialog::CreateDialog() {
vbc->add_margin_child(TTR("Search:"), search_hb);

search_options = memnew(Tree);
search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
search_options->connect("item_activated", callable_mp(this, &CreateDialog::_confirmed));
search_options->connect("cell_selected", callable_mp(this, &CreateDialog::_item_selected));
vbc->add_margin_child(TTR("Matches:"), search_options, true);
Expand Down
1 change: 1 addition & 0 deletions editor/debugger/editor_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ EditorProfiler::EditorProfiler() {
h_split->set_v_size_flags(SIZE_EXPAND_FILL);

variables = memnew(Tree);
variables->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
variables->set_custom_minimum_size(Size2(320, 0) * EDSCALE);
variables->set_hide_folding(true);
h_split->add_child(variables);
Expand Down
4 changes: 4 additions & 0 deletions editor/dependency_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ DependencyEditor::DependencyEditor() {
add_child(vb);

tree = memnew(Tree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_columns(2);
tree->set_column_titles_visible(true);
tree->set_column_title(0, TTR("Resource"));
Expand Down Expand Up @@ -672,6 +673,7 @@ DependencyRemoveDialog::DependencyRemoveDialog() {
vb->add_child(text);

owners = memnew(Tree);
owners->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
owners->set_hide_root(true);
vb->add_child(owners);
owners->set_v_size_flags(Control::SIZE_EXPAND_FILL);
Expand Down Expand Up @@ -724,6 +726,7 @@ DependencyErrorDialog::DependencyErrorDialog() {
add_child(vb);

files = memnew(Tree);
files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
files->set_hide_root(true);
vb->add_margin_child(TTR("Load failed due to missing dependencies:"), files, true);
files->set_v_size_flags(Control::SIZE_EXPAND_FILL);
Expand Down Expand Up @@ -879,6 +882,7 @@ OrphanResourcesDialog::OrphanResourcesDialog() {
add_child(vbc);

files = memnew(Tree);
files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
files->set_columns(2);
files->set_column_titles_visible(true);
files->set_column_custom_minimum_width(1, 100 * EDSCALE);
Expand Down
1 change: 1 addition & 0 deletions editor/editor_about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ EditorAbout::EditorAbout() {
license_thirdparty->add_child(tpl_hbc);

_tpl_tree = memnew(Tree);
_tpl_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
_tpl_tree->set_hide_root(true);
TreeItem *root = _tpl_tree->create_item();
TreeItem *tpl_ti_all = _tpl_tree->create_item(root);
Expand Down
2 changes: 2 additions & 0 deletions editor/editor_asset_installer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ EditorAssetInstaller::EditorAssetInstaller() {
source_tree_vb->add_child(source_tree_label);

source_tree = memnew(Tree);
source_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
source_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
source_tree->connect("item_edited", callable_mp(this, &EditorAssetInstaller::_item_checked_cbk));
source_tree_vb->add_child(source_tree);
Expand All @@ -749,6 +750,7 @@ EditorAssetInstaller::EditorAssetInstaller() {
destination_tree_vb->add_child(destination_tree_label);

destination_tree = memnew(Tree);
destination_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
destination_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
destination_tree->connect("item_edited", callable_mp(this, &EditorAssetInstaller::_item_checked_cbk));
destination_tree_vb->add_child(destination_tree);
Expand Down
1 change: 1 addition & 0 deletions editor/editor_build_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ EditorBuildProfileManager::EditorBuildProfileManager() {
main_vbc->add_margin_child(TTR("Actions:"), profiles_hbc);

class_list = memnew(Tree);
class_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
class_list->set_hide_root(true);
class_list->set_edit_checkbox_cell_only_when_checkbox_is_pressed(true);
class_list->connect("cell_selected", callable_mp(this, &EditorBuildProfileManager::_class_list_item_selected));
Expand Down
1 change: 1 addition & 0 deletions editor/editor_feature_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,7 @@ EditorFeatureProfileManager::EditorFeatureProfileManager() {
class_list_vbc->set_h_size_flags(Control::SIZE_EXPAND_FILL);

class_list = memnew(Tree);
class_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
class_list_vbc->add_margin_child(TTR("Configure Selected Profile:"), class_list, true);
class_list->set_hide_root(true);
class_list->set_edit_checkbox_cell_only_when_checkbox_is_pressed(true);
Expand Down
1 change: 1 addition & 0 deletions editor/editor_help_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ EditorHelpSearch::EditorHelpSearch() {

// Create the results tree.
results_tree = memnew(Tree);
results_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
results_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
results_tree->set_columns(2);
results_tree->set_column_title(0, TTR("Name"));
Expand Down
3 changes: 3 additions & 0 deletions editor/editor_locale_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
}
{
lang_list = memnew(Tree);
lang_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
lang_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
lang_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected));
lang_list->set_columns(1);
Expand All @@ -452,6 +453,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
}
{
script_list = memnew(Tree);
script_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
script_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
script_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected));
script_list->set_columns(1);
Expand All @@ -470,6 +472,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
}
{
cnt_list = memnew(Tree);
cnt_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
cnt_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
cnt_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected));
cnt_list->set_columns(1);
Expand Down
1 change: 1 addition & 0 deletions editor/editor_quick_open.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ EditorQuickOpen::EditorQuickOpen() {
register_text_enter(search_box);

search_options = memnew(Tree);
search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
search_options->connect("item_activated", callable_mp(this, &EditorQuickOpen::_confirmed));
search_options->create_item();
search_options->set_hide_root(true);
Expand Down
1 change: 1 addition & 0 deletions editor/editor_resource_picker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ void EditorResourcePicker::_edit_menu_cbk(int p_which) {
vb->add_child(label);

duplicate_resources_tree = memnew(Tree);
duplicate_resources_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
vb->add_child(duplicate_resources_tree);
duplicate_resources_tree->set_columns(2);
duplicate_resources_tree->set_v_size_flags(SIZE_EXPAND_FILL);
Expand Down
1 change: 1 addition & 0 deletions editor/editor_sectioned_inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ SectionedInspector::SectionedInspector() :
left_vb->set_custom_minimum_size(Size2(190, 0) * EDSCALE);
add_child(left_vb);

sections->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
sections->set_v_size_flags(SIZE_EXPAND_FILL);
sections->set_hide_root(true);

Expand Down
1 change: 1 addition & 0 deletions editor/editor_settings_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ EditorSettingsDialog::EditorSettingsDialog() {
top_hbox->add_child(clear_all_search);

shortcuts = memnew(Tree);
shortcuts->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
shortcuts->set_v_size_flags(Control::SIZE_EXPAND_FILL);
shortcuts->set_columns(2);
shortcuts->set_hide_root(true);
Expand Down
1 change: 1 addition & 0 deletions editor/export/export_template_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ ExportTemplateManager::ExportTemplateManager() {
installed_versions_hb->add_child(installed_label);

installed_table = memnew(Tree);
installed_table->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
installed_table->set_hide_root(true);
installed_table->set_custom_minimum_size(Size2(0, 100) * EDSCALE);
installed_table->set_v_size_flags(Control::SIZE_EXPAND_FILL);
Expand Down
1 change: 1 addition & 0 deletions editor/export/project_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,7 @@ ProjectExportDialog::ProjectExportDialog() {

include_files = memnew(Tree);
include_margin->add_child(include_files);
include_files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
include_files->connect("item_edited", callable_mp(this, &ProjectExportDialog::_tree_changed));
include_files->connect("check_propagated_to_item", callable_mp(this, &ProjectExportDialog::_check_propagated_to_item));
include_files->connect("custom_popup_edited", callable_mp(this, &ProjectExportDialog::_tree_popup_edited));
Expand Down
1 change: 1 addition & 0 deletions editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3903,6 +3903,7 @@ FileSystemDock::FileSystemDock() {
tree = memnew(FileSystemTree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);

tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_hide_root(true);
SET_DRAG_FORWARDING_GCD(tree, FileSystemDock);
tree->set_allow_rmb_select(true);
Expand Down
1 change: 1 addition & 0 deletions editor/find_in_files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ FindInFilesPanel::FindInFilesPanel() {
}

_results_display = memnew(Tree);
_results_display->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
_results_display->set_v_size_flags(SIZE_EXPAND_FILL);
_results_display->connect("item_selected", callable_mp(this, &FindInFilesPanel::_on_result_selected));
_results_display->connect("item_edited", callable_mp(this, &FindInFilesPanel::_on_item_edited));
Expand Down
1 change: 1 addition & 0 deletions editor/groups_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ GroupsEditor::GroupsEditor() {
hbc->add_child(filter);

tree = memnew(Tree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_hide_root(true);
tree->set_v_size_flags(SIZE_EXPAND_FILL);
tree->set_allow_rmb_select(true);
Expand Down
4 changes: 4 additions & 0 deletions editor/import/3d/scene_import_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1573,17 +1573,20 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {

scene_tree = memnew(Tree);
scene_tree->set_name(TTR("Scene"));
scene_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
data_mode->add_child(scene_tree);
scene_tree->connect("cell_selected", callable_mp(this, &SceneImportSettingsDialog::_scene_tree_selected));

mesh_tree = memnew(Tree);
mesh_tree->set_name(TTR("Meshes"));
mesh_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
data_mode->add_child(mesh_tree);
mesh_tree->set_hide_root(true);
mesh_tree->connect("cell_selected", callable_mp(this, &SceneImportSettingsDialog::_mesh_tree_selected));

material_tree = memnew(Tree);
material_tree->set_name(TTR("Materials"));
material_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
data_mode->add_child(material_tree);
material_tree->connect("cell_selected", callable_mp(this, &SceneImportSettingsDialog::_material_tree_selected));

Expand Down Expand Up @@ -1719,6 +1722,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
external_paths->add_child(external_path_tree);
external_path_tree->connect("button_clicked", callable_mp(this, &SceneImportSettingsDialog::_browse_save_callback));
external_paths->connect("confirmed", callable_mp(this, &SceneImportSettingsDialog::_save_dir_confirm));
external_path_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
external_path_tree->set_columns(3);
external_path_tree->set_column_titles_visible(true);
external_path_tree->set_column_expand(0, true);
Expand Down
4 changes: 4 additions & 0 deletions editor/import/dynamic_font_import_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,7 @@ DynamicFontImportSettingsDialog::DynamicFontImportSettingsDialog() {
add_var->connect("pressed", callable_mp(this, &DynamicFontImportSettingsDialog::_variation_add));

vars_list = memnew(Tree);
vars_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
vars_list->set_custom_minimum_size(Size2(300 * EDSCALE, 0));
vars_list->set_hide_root(true);
vars_list->set_columns(2);
Expand Down Expand Up @@ -1427,6 +1428,7 @@ DynamicFontImportSettingsDialog::DynamicFontImportSettingsDialog() {
page2_0_vb->add_child(page2_0_description);

locale_tree = memnew(Tree);
locale_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
locale_tree->set_columns(1);
locale_tree->set_hide_root(true);
locale_tree->set_column_expand(0, true);
Expand Down Expand Up @@ -1502,6 +1504,7 @@ DynamicFontImportSettingsDialog::DynamicFontImportSettingsDialog() {
page2_2_vb->add_child(glyphs_split);

glyph_table = memnew(Tree);
glyph_table->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
glyph_table->set_custom_minimum_size(Size2((30 * 16 + 100) * EDSCALE, 0));
glyph_table->set_columns(17);
glyph_table->set_column_expand(0, false);
Expand All @@ -1521,6 +1524,7 @@ DynamicFontImportSettingsDialog::DynamicFontImportSettingsDialog() {
glyph_table->connect("item_activated", callable_mp(this, &DynamicFontImportSettingsDialog::_glyph_selected));

glyph_tree = memnew(Tree);
glyph_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
glyph_tree->set_custom_minimum_size(Size2(300 * EDSCALE, 0));
glyph_tree->set_columns(2);
glyph_tree->set_hide_root(true);
Expand Down
1 change: 1 addition & 0 deletions editor/input_event_configuration_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ InputEventConfigurationDialog::InputEventConfigurationDialog() {
manual_vbox->add_child(input_list_search);

input_list_tree = memnew(Tree);
input_list_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
input_list_tree->set_custom_minimum_size(Size2(0, 100 * EDSCALE)); // Min height for tree
input_list_tree->connect("item_selected", callable_mp(this, &InputEventConfigurationDialog::_input_list_item_selected));
input_list_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
Expand Down
1 change: 1 addition & 0 deletions editor/inspector_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ InspectorDock::InspectorDock(EditorData &p_editor_data) {
container->add_child(unique_resources_label);

unique_resources_list_tree = memnew(Tree);
unique_resources_list_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
unique_resources_list_tree->set_hide_root(true);
unique_resources_list_tree->set_columns(1);
unique_resources_list_tree->set_column_title(0, TTR("Property"));
Expand Down
1 change: 1 addition & 0 deletions editor/plugins/animation_blend_tree_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,7 @@ AnimationNodeBlendTreeEditor::AnimationNodeBlendTreeEditor() {

filters = memnew(Tree);
filter_vbox->add_child(filters);
filters->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
filters->set_v_size_flags(SIZE_EXPAND_FILL);
filters->set_hide_root(true);
filters->connect("item_edited", callable_mp(this, &AnimationNodeBlendTreeEditor::_filter_edited));
Expand Down
1 change: 1 addition & 0 deletions editor/plugins/animation_library_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ AnimationLibraryEditor::AnimationLibraryEditor() {
tree = memnew(Tree);
vb->add_child(tree);

tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_columns(2);
tree->set_column_titles_visible(true);
tree->set_column_title(0, TTR("Resource"));
Expand Down
1 change: 1 addition & 0 deletions editor/plugins/animation_player_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2058,6 +2058,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
blend_editor.dialog->add_child(blend_vb);

blend_editor.tree = memnew(Tree);
blend_editor.tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
blend_editor.tree->set_hide_root(true);
blend_editor.tree->set_columns(2);
blend_editor.tree->set_column_expand_ratio(0, 10);
Expand Down
1 change: 1 addition & 0 deletions editor/plugins/animation_state_machine_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1809,6 +1809,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
add_child(delete_window);

delete_tree = memnew(Tree);
delete_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
delete_tree->set_hide_root(true);
delete_tree->connect("draw", callable_mp(this, &AnimationNodeStateMachineEditor::_delete_tree_draw));
delete_window->add_child(delete_tree);
Expand Down
1 change: 1 addition & 0 deletions editor/plugins/bone_map_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ void BonePicker::create_editors() {
add_child(vbox);

bones = memnew(Tree);
bones->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
bones->set_select_mode(Tree::SELECT_SINGLE);
bones->set_v_size_flags(Control::SIZE_EXPAND_FILL);
bones->set_hide_root(true);
Expand Down
1 change: 1 addition & 0 deletions editor/plugins/resource_preloader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ ResourcePreloaderEditor::ResourcePreloaderEditor() {

tree = memnew(Tree);
tree->connect("button_clicked", callable_mp(this, &ResourcePreloaderEditor::_cell_button_pressed));
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_columns(2);
tree->set_column_expand_ratio(0, 2);
tree->set_column_clip_content(0, true);
Expand Down
1 change: 1 addition & 0 deletions editor/plugins/root_motion_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ EditorPropertyRootMotion::EditorPropertyRootMotion() {

filters = memnew(Tree);
filter_dialog->add_child(filters);
filters->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
filters->set_v_size_flags(SIZE_EXPAND_FILL);
filters->set_hide_root(true);
filters->connect("item_activated", callable_mp(this, &EditorPropertyRootMotion::_confirmed));
Expand Down
2 changes: 2 additions & 0 deletions editor/plugins/script_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ ScriptEditorQuickOpen::ScriptEditorQuickOpen() {
register_text_enter(search_box);
set_hide_on_ok(false);
search_options->connect("item_activated", callable_mp(this, &ScriptEditorQuickOpen::_confirmed));
search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
search_options->set_hide_root(true);
search_options->set_hide_folding(true);
search_options->add_theme_constant_override("draw_guides", 1);
Expand Down Expand Up @@ -4167,6 +4168,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {

disk_changed_list = memnew(Tree);
vbc->add_child(disk_changed_list);
disk_changed_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
disk_changed_list->set_v_size_flags(SIZE_EXPAND_FILL);

disk_changed->connect("confirmed", callable_mp(this, &ScriptEditor::reload_scripts).bind(false));
Expand Down
1 change: 1 addition & 0 deletions editor/plugins/script_text_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ ConnectionInfoDialog::ConnectionInfoDialog() {
vbc->add_child(method);

tree = memnew(Tree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_columns(3);
tree->set_hide_root(true);
tree->set_column_titles_visible(true);
Expand Down
1 change: 1 addition & 0 deletions editor/plugins/skeleton_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ void Skeleton3DEditor::create_editors() {
bones_section->get_vbox()->add_child(s_con);

joint_tree = memnew(Tree);
joint_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
joint_tree->set_columns(1);
joint_tree->set_focus_mode(Control::FOCUS_NONE);
joint_tree->set_select_mode(Tree::SELECT_SINGLE);
Expand Down
Loading

0 comments on commit 0537277

Please sign in to comment.