Improve headings for the export mode in the Export dialog
"Export as dedicated server" now uses a less confusing heading.
This commit is contained in:
parent
f8dbed4d0a
commit
73c1b212f7
|
@ -242,7 +242,7 @@ void ProjectExportDialog::_edit_preset(int p_index) {
|
||||||
|
|
||||||
export_filter->select(current->get_export_filter());
|
export_filter->select(current->get_export_filter());
|
||||||
include_filters->set_text(current->get_include_filter());
|
include_filters->set_text(current->get_include_filter());
|
||||||
include_label->set_text(current->get_export_filter() == EditorExportPreset::EXCLUDE_SELECTED_RESOURCES ? TTR("Resources to exclude:") : TTR("Resources to export:"));
|
include_label->set_text(_get_resource_export_header(current->get_export_filter()));
|
||||||
exclude_filters->set_text(current->get_exclude_filter());
|
exclude_filters->set_text(current->get_exclude_filter());
|
||||||
server_strip_message->set_visible(current->get_export_filter() == EditorExportPreset::EXPORT_CUSTOMIZED);
|
server_strip_message->set_visible(current->get_export_filter() == EditorExportPreset::EXPORT_CUSTOMIZED);
|
||||||
|
|
||||||
|
@ -703,13 +703,24 @@ void ProjectExportDialog::_export_type_changed(int p_which) {
|
||||||
if (filter_type == EditorExportPreset::EXPORT_CUSTOMIZED && current->get_customized_files_count() == 0) {
|
if (filter_type == EditorExportPreset::EXPORT_CUSTOMIZED && current->get_customized_files_count() == 0) {
|
||||||
current->set_file_export_mode("res://", EditorExportPreset::MODE_FILE_STRIP);
|
current->set_file_export_mode("res://", EditorExportPreset::MODE_FILE_STRIP);
|
||||||
}
|
}
|
||||||
include_label->set_text(current->get_export_filter() == EditorExportPreset::EXCLUDE_SELECTED_RESOURCES ? TTR("Resources to exclude:") : TTR("Resources to export:"));
|
include_label->set_text(_get_resource_export_header(current->get_export_filter()));
|
||||||
|
|
||||||
updating = true;
|
updating = true;
|
||||||
_fill_resource_tree();
|
_fill_resource_tree();
|
||||||
updating = false;
|
updating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String ProjectExportDialog::_get_resource_export_header(EditorExportPreset::ExportFilter p_filter) const {
|
||||||
|
switch (p_filter) {
|
||||||
|
case EditorExportPreset::EXCLUDE_SELECTED_RESOURCES:
|
||||||
|
return TTR("Resources to exclude:");
|
||||||
|
case EditorExportPreset::EXPORT_CUSTOMIZED:
|
||||||
|
return TTR("Resources to override export behavior:");
|
||||||
|
default:
|
||||||
|
return TTR("Resources to export:");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void ProjectExportDialog::_filter_changed(const String &p_filter) {
|
void ProjectExportDialog::_filter_changed(const String &p_filter) {
|
||||||
if (updating) {
|
if (updating) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -115,6 +115,7 @@ private:
|
||||||
|
|
||||||
void _export_type_changed(int p_which);
|
void _export_type_changed(int p_which);
|
||||||
void _filter_changed(const String &p_filter);
|
void _filter_changed(const String &p_filter);
|
||||||
|
String _get_resource_export_header(EditorExportPreset::ExportFilter p_filter) const;
|
||||||
void _fill_resource_tree();
|
void _fill_resource_tree();
|
||||||
void _setup_item_for_file_mode(TreeItem *p_item, EditorExportPreset::FileExportMode p_mode);
|
void _setup_item_for_file_mode(TreeItem *p_item, EditorExportPreset::FileExportMode p_mode);
|
||||||
bool _fill_tree(EditorFileSystemDirectory *p_dir, TreeItem *p_item, Ref<EditorExportPreset> ¤t, EditorExportPreset::ExportFilter p_export_filter);
|
bool _fill_tree(EditorFileSystemDirectory *p_dir, TreeItem *p_item, Ref<EditorExportPreset> ¤t, EditorExportPreset::ExportFilter p_export_filter);
|
||||||
|
|
Loading…
Reference in New Issue