summaryrefslogtreecommitdiffstats
path: root/editor/export/editor_export_plugin.cpp
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuya@meta.com>2024-09-13 13:05:20 -0700
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2024-09-29 15:05:05 -0700
commit7a909896f73cf7ed81ba39028b75315ecf851628 (patch)
tree2c20af8ebad9f65277ba3cd963b9fd74b687b7ba /editor/export/editor_export_plugin.cpp
parent84dcdde9088d512efebb0033fb881d8f7fd9c107 (diff)
downloadredot-engine-7a909896f73cf7ed81ba39028b75315ecf851628.tar.gz
Expose `get_export_option_visibility` to editor plugins
Diffstat (limited to 'editor/export/editor_export_plugin.cpp')
-rw-r--r--editor/export/editor_export_plugin.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/export/editor_export_plugin.cpp b/editor/export/editor_export_plugin.cpp
index 5945c02413..999216b495 100644
--- a/editor/export/editor_export_plugin.cpp
+++ b/editor/export/editor_export_plugin.cpp
@@ -295,6 +295,12 @@ bool EditorExportPlugin::_should_update_export_options(const Ref<EditorExportPla
return ret;
}
+bool EditorExportPlugin::_get_export_option_visibility(const Ref<EditorExportPlatform> &p_export_platform, const String &p_option_name) const {
+ bool ret = true;
+ GDVIRTUAL_CALL(_get_export_option_visibility, p_export_platform, p_option_name, ret);
+ return ret;
+}
+
String EditorExportPlugin::_get_export_option_warning(const Ref<EditorExportPlatform> &p_export_platform, const String &p_option_name) const {
String ret;
GDVIRTUAL_CALL(_get_export_option_warning, p_export_platform, p_option_name, ret);
@@ -354,6 +360,7 @@ void EditorExportPlugin::_bind_methods() {
GDVIRTUAL_BIND(_get_export_options, "platform");
GDVIRTUAL_BIND(_get_export_options_overrides, "platform");
GDVIRTUAL_BIND(_should_update_export_options, "platform");
+ GDVIRTUAL_BIND(_get_export_option_visibility, "platform", "option");
GDVIRTUAL_BIND(_get_export_option_warning, "platform", "option");
GDVIRTUAL_BIND(_get_export_features, "platform", "debug");