mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Added an experimental convert scripts option for godot3 export
This commit is contained in:
parent
1a934a58e4
commit
cecc893702
4 changed files with 218 additions and 25 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue