mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-25 01:17:10 +01:00
Set up call paths to the connect, disconnect, and merge, split buttons.
This commit is contained in:
parent
0bb573a2ee
commit
dbbad9871d
@ -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()
|
||||
|
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user