You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Added an experimental convert scripts option for godot3 export
This commit is contained in:
@@ -5077,7 +5077,7 @@ void EditorNode::_bind_methods() {
|
||||
|
||||
void EditorNode::_export_godot3_path(const String &p_path) {
|
||||
|
||||
Error err = export_godot3.export_godot3(p_path);
|
||||
Error err = export_godot3.export_godot3(p_path, export_godot3_dialog_convert_scripts->is_pressed());
|
||||
if (err != OK) {
|
||||
show_warning("Error exporting to Godot 3.0");
|
||||
}
|
||||
@@ -6345,6 +6345,10 @@ EditorNode::EditorNode() {
|
||||
export_godot3_dialog = memnew(FileDialog);
|
||||
export_godot3_dialog->set_access(FileDialog::ACCESS_FILESYSTEM);
|
||||
export_godot3_dialog->set_mode(FileDialog::MODE_OPEN_DIR);
|
||||
export_godot3_dialog_convert_scripts = memnew(CheckButton);
|
||||
export_godot3_dialog_convert_scripts->set_text(TTR("Convert scripts (experimental)"));
|
||||
export_godot3_dialog_convert_scripts->set_pressed(false);
|
||||
export_godot3_dialog->get_vbox()->add_child(export_godot3_dialog_convert_scripts);
|
||||
gui_base->add_child(export_godot3_dialog);
|
||||
export_godot3_dialog->connect("dir_selected", this, "_export_godot3_path");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user