diff --git a/game/addons/mesh_data_resource_editor/MDIEd.gd b/game/addons/mesh_data_resource_editor/MDIEd.gd index 96e07892..968f5e4b 100644 --- a/game/addons/mesh_data_resource_editor/MDIEd.gd +++ b/game/addons/mesh_data_resource_editor/MDIEd.gd @@ -139,3 +139,14 @@ func _on_add_triangle_pressed(): func _on_add_quad_pressed(): plugin.add_quad() +func _on_merge_pressed(): + plugin.merge() + +func _on_split_pressed(): + plugin.split() + +func _on_connect_pressed(): + plugin.connect_action() + +func _on_disconnect_pressed(): + plugin.disconnect_action() diff --git a/game/addons/mesh_data_resource_editor/MDIEd.tscn b/game/addons/mesh_data_resource_editor/MDIEd.tscn index b20af753..cbd6f66e 100644 --- a/game/addons/mesh_data_resource_editor/MDIEd.tscn +++ b/game/addons/mesh_data_resource_editor/MDIEd.tscn @@ -333,6 +333,10 @@ script = ExtResource( 3 ) [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3/Face" to="." method="on_selection_mode_face_toggled"] [connection signal="pressed" from="VBoxContainer/Operations/Operations/Extrude" to="." method="_on_Extrude_pressed"] [connection signal="pressed" from="VBoxContainer/Operations/Operations/UnwrapButton" to="." method="_on_UnwrapButton_pressed"] +[connection signal="pressed" from="VBoxContainer/Operations/Operations/Merge" to="." method="_on_merge_pressed"] +[connection signal="pressed" from="VBoxContainer/Operations/Operations/Split" to="." method="_on_split_pressed"] +[connection signal="pressed" from="VBoxContainer/Operations/Operations/Connect" to="." method="_on_connect_pressed"] +[connection signal="pressed" from="VBoxContainer/Operations/Operations/Disconnect" to="." method="_on_disconnect_pressed"] [connection signal="pressed" from="VBoxContainer/Add/Add/AddBox" to="." method="_on_AddBox_pressed"] [connection signal="pressed" from="VBoxContainer/Add/Add/AddTriangle" to="." method="_on_add_triangle_pressed"] [connection signal="pressed" from="VBoxContainer/Add/Add/AdQuad" to="." method="_on_add_quad_pressed"] diff --git a/game/addons/mesh_data_resource_editor/MIDGizmo.gd b/game/addons/mesh_data_resource_editor/MIDGizmo.gd index 9e3c1cf2..bd1594fc 100644 --- a/game/addons/mesh_data_resource_editor/MIDGizmo.gd +++ b/game/addons/mesh_data_resource_editor/MIDGizmo.gd @@ -386,3 +386,15 @@ func add_quad() -> void: func add_box() -> void: if _mdr: MeshAddUtils.add_box(_mdr) + +func merge(): + pass + +func split(): + pass + +func connect_action(): + pass + +func disconnect_action(): + pass diff --git a/game/addons/mesh_data_resource_editor/plugin.gd b/game/addons/mesh_data_resource_editor/plugin.gd index e127316c..2702c822 100644 --- a/game/addons/mesh_data_resource_editor/plugin.gd +++ b/game/addons/mesh_data_resource_editor/plugin.gd @@ -181,3 +181,19 @@ func add_triangle() -> void: func add_quad() -> void: for g in active_gizmos: g.add_quad() + +func merge(): + for g in active_gizmos: + g.merge() + +func split(): + for g in active_gizmos: + g.split() + +func connect_action(): + for g in active_gizmos: + g.connect_action() + +func disconnect_action(): + for g in active_gizmos: + g.disconnect_action()