[Export] Add readable descriptions and validation warnings to the export options.
This commit is contained in:
@@ -33,6 +33,10 @@
|
||||
#include "editor/editor_settings.h"
|
||||
#include "export_plugin.h"
|
||||
|
||||
void register_uwp_exporter_types() {
|
||||
// GDREGISTER_VIRTUAL_CLASS(EditorExportPlatformUWP);
|
||||
}
|
||||
|
||||
void register_uwp_exporter() {
|
||||
#ifdef WINDOWS_ENABLED
|
||||
EDITOR_DEF("export/uwp/signtool", "");
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef UWP_EXPORT_H
|
||||
#define UWP_EXPORT_H
|
||||
|
||||
void register_uwp_exporter_types();
|
||||
void register_uwp_exporter();
|
||||
|
||||
#endif // UWP_EXPORT_H
|
||||
|
||||
@@ -62,7 +62,7 @@ void EditorExportPlatformUWP::get_preset_features(const Ref<EditorExportPreset>
|
||||
r_features->push_back(p_preset->get("binary_format/architecture"));
|
||||
}
|
||||
|
||||
void EditorExportPlatformUWP::get_export_options(List<ExportOption> *r_options) {
|
||||
void EditorExportPlatformUWP::get_export_options(List<ExportOption> *r_options) const {
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "custom_template/debug", PROPERTY_HINT_GLOBAL_FILE, "*.zip"), ""));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "custom_template/release", PROPERTY_HINT_GLOBAL_FILE, "*.zip"), ""));
|
||||
|
||||
|
||||
@@ -427,7 +427,7 @@ public:
|
||||
|
||||
virtual void get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) const override;
|
||||
|
||||
virtual void get_export_options(List<ExportOption> *r_options) override;
|
||||
virtual void get_export_options(List<ExportOption> *r_options) const override;
|
||||
|
||||
virtual bool has_valid_export_configuration(const Ref<EditorExportPreset> &p_preset, String &r_error, bool &r_missing_templates) const override;
|
||||
virtual bool has_valid_project_configuration(const Ref<EditorExportPreset> &p_preset, String &r_error) const override;
|
||||
|
||||
Reference in New Issue
Block a user