summaryrefslogtreecommitdiff
path: root/editor/project_export.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-03-23 09:46:59 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-03-28 18:52:09 +0800
commitccde2bf66fabe319095a9dc3b91cf071313142ba (patch)
tree74b6919ac49b9be22362878b67acbd46dab78bc9 /editor/project_export.cpp
parent6b2481fcfee06c1c946c59cf3f9b21347573d339 (diff)
Add property name style toggle to Inspector
Diffstat (limited to 'editor/project_export.cpp')
-rw-r--r--editor/project_export.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/project_export.cpp b/editor/project_export.cpp
index cd9aef1e99..1344afbd3a 100644
--- a/editor/project_export.cpp
+++ b/editor/project_export.cpp
@@ -68,6 +68,10 @@ void ProjectExportDialog::_notification(int p_what) {
connect("confirmed", callable_mp(this, &ProjectExportDialog::_export_pck_zip));
_update_export_all();
} break;
+
+ case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
+ parameters->set_property_name_style(EditorPropertyNameProcessor::get_settings_style());
+ } break;
}
}
@@ -1066,6 +1070,7 @@ ProjectExportDialog::ProjectExportDialog() {
sections->add_child(parameters);
parameters->set_name(TTR("Options"));
parameters->set_v_size_flags(Control::SIZE_EXPAND_FILL);
+ parameters->set_property_name_style(EditorPropertyNameProcessor::get_settings_style());
parameters->connect("property_edited", callable_mp(this, &ProjectExportDialog::_update_parameters));
EditorExport::get_singleton()->connect("export_presets_updated", callable_mp(this, &ProjectExportDialog::_force_update_current_preset_parameters));