1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Make 'Export PCK/ZIP' work well with EditorExportPlugin

Add debug flag to the 'Export PCK/ZIP' option
Make 'Export PCK/ZIP' notify when the export process begins. This is necessary to receive the 'EditorExportPlugin::_export_begin' callback

(cherry picked from commit 68b35de2b6)
This commit is contained in:
Ignacio Etcheverry
2018-04-26 23:08:19 +02:00
committed by Hein-Pieter van Braam
parent c358e4c728
commit fe9da69f96
5 changed files with 23 additions and 5 deletions

View File

@@ -697,9 +697,9 @@ void ProjectExportDialog::_export_pck_zip_selected(const String &p_path) {
ERR_FAIL_COND(platform.is_null());
if (p_path.ends_with(".zip")) {
platform->save_zip(current, p_path);
platform->export_zip(current, export_pck_zip_debug->is_pressed(), p_path);
} else if (p_path.ends_with(".pck")) {
platform->save_pack(current, p_path);
platform->export_pack(current, export_pck_zip_debug->is_pressed(), p_path);
}
}
@@ -975,6 +975,11 @@ ProjectExportDialog::ProjectExportDialog() {
export_debug->set_pressed(true);
export_project->get_vbox()->add_child(export_debug);
export_pck_zip_debug = memnew(CheckButton);
export_pck_zip_debug->set_text(TTR("Export With Debug"));
export_pck_zip_debug->set_pressed(true);
export_pck_zip->get_vbox()->add_child(export_pck_zip_debug);
set_hide_on_ok(false);
editor_icons = "EditorIcons";